- Issue created by @mstrelan
- 🇦🇺Australia mstrelan
Current status (assuming Kernel tests gets in soon):
<include-pattern>*/tests/*</include-pattern> <exclude-pattern>*/tests/modules/*</exclude-pattern> <exclude-pattern>*/tests/themes/*</exclude-pattern> <exclude-pattern>*/tests/*_test/*</exclude-pattern> <exclude-pattern>*/tests/*fixture*/*</exclude-pattern>
- 📌 Add declare(strict_types=1) to all test modules Postponed should take care of the first two exclude patterns.
- We need another issue for test themes, I think they are all in
core/modules/system/tests/themes/
- We need another issue for fixtures, although maybe we should continue to ignore them
That leaves the following that need to be categorised:
core/modules/comment/src/Tests/CommentTestTrait.php core/modules/contact/tests/drupal-7.contact.database.php core/modules/filter/tests/filter_test_plugin/src/Plugin/Filter/FilterSparkles.php core/modules/filter/tests/filter_test_plugin/src/Plugin/Filter/FilterTestStatic.php core/modules/menu_link_content/tests/menu_link_content_dynamic_route/src/Routes.php core/modules/migrate_drupal/src/Tests/StubTestTrait.php core/modules/node/tests/node_access_test_auto_bubbling/src/Controller/NodeAccessTestAutoBubblingController.php core/modules/system/tests/http.php core/modules/system/tests/https.php core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php core/modules/views/src/Tests/TestHelperPlugin.php core/modules/views/src/Tests/ViewResultAssertionTrait.php core/modules/views/src/Tests/ViewTestData.php core/tests/bootstrap.php
- Possibly the Traits and Views classes should move to the
tests
dir in each module, unless there is some reason they need to live insrc/Tests
instead. - We should make sure to capture
filter_test_plugin
,menu_link_content_dynamic_route
andnode_access_test_auto_bubbling
in 📌 Add declare(strict_types=1) to all test modules Postponed , or move them to atest/modules
directory first - Not too sure about the remaining non-class php files, I guess we should be ok to include them
- Status changed to Active
3 months ago 8:30am 25 August 2024 - Status changed to Needs review
3 months ago 11:52pm 25 August 2024 - Status changed to RTBC
3 months ago 1:38pm 26 August 2024 - 🇺🇸United States smustgrave
Yes! Very happy to see this is going to be mandatory now.
Changes in MR seems fine to me.
- Status changed to Fixed
3 months ago 11:56am 30 August 2024 - 🇳🇿New Zealand quietone
Since this issue enabled strict types I moved the CR from the parent to here and published it.
Automatically closed - issue fixed for 2 weeks with no activity.