- Issue created by @zniki.ru
- Merge request !10884Issue #3499234: Manually convert test modules hooks β (Closed) created by zniki.ru
- π·πΊRussia zniki.ru
Looks like layout_builder_extra_field_test_node_view can be simply removed. Because we have LayoutBuilderExtraFieldTestHooks::hook_entity_extra_field_info
- π·πΊRussia zniki.ru
I decide to remove layout_builder_extra_field_test_node_view(), IS updated.
- π·πΊRussia zniki.ru
Create issue at coder to implement check hook name at Hook attribute π Add rule to check Hook attribute doesn't start with hook_ Active .
- πΊπΈUnited States nicxvan
I don't follow why
Looks like layout_builder_extra_field_test_node_view can be simply removed. Because we have LayoutBuilderExtraFieldTestHooks::hook_entity_extra_field_info.
- π·πΊRussia zniki.ru
LayoutBuilderUiTest::testNewExtraField doesn't test content display.
It just test layout_builder admin manage page:admin/structure/types/manage/bundle_with_section_field/display/default/layout
. And this test doesn't check entity display at all. That the reason functionlayout_builder_extra_field_test_node_view
can be removed. - π³π±Netherlands bbrala Netherlands
Reviewed the code. This looks good, changes are all compliant with the original hooks. And lovely to slowly see module files die. ;)
+1 to RTBC from me.
- π¬π§United Kingdom catch
This needs a rebase for the phpstan baseline unfortunately.
- π³π±Netherlands bbrala Netherlands
Did a quick rebase, since it is only phpstan baseline, setting to RTBC
- π¬π§United Kingdom catch
Not sure what happened, but while this passed commit checks, it broke HEAD phpstan - I regenerated the baseline and pushed a follow-up commit, so should be OK again now.
- π³π±Netherlands bbrala Netherlands
Weird. Was sure to pull 11.x and accept theirs in git.
- πΊπΈUnited States nicxvan
@bbrala, yes, but this issue removed some functions from baseline, so accepting theirs removed the removal I think. You can see that the pipelines failed. In that case after rebasing you have to regenerate the baseline to pick up the updates.
I'm not sure how commit checks passed in that case, but baseline has been weird in general I think, there is another issue where the pipeline is passing but phpstan is detecting changes.
- π¬π§United Kingdom catch
I think commit checks passed because there were no baseline changes so it only checked the new files, and I obviously didn't check the MR run.
- π³π±Netherlands bbrala Netherlands
TIL will be more carefully with phostan diffs
- πΊπΈUnited States nicxvan
No worries, it can be confusing, here is the command to regenerate:
./vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --memory-limit=-1 --generate-baseline=core/.phpstan-baseline.php