- Issue created by @alexpott
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
I've gone for throwing an exception because returning an empty array and triggering a deprecation is not helpful. It took longer to work out why a test was failing because of the empty array behaviour. It just does not make sense.
- Status changed to Needs review
about 1 year ago 10:07pm 4 October 2023 - last update
about 1 year ago Build Successful - @alexpott opened merge request.
- last update
about 1 year ago 30,372 pass, 4 fail - last update
about 1 year ago 30,370 pass, 5 fail - last update
about 1 year ago 30,379 pass - 🇬🇧United Kingdom alexpott 🇪🇺🌍
I think going straight to the exception is correct here as it helps reveals broken assumptions. For example, \Drupal\KernelTests\Core\Theme\BaseThemeMissingTest is not testing what it thinks it is. It never actually reads the core/tests/fixtures/test_missing_base_theme/test_missing_base_theme.info.yml virtual file.
This also reveals that we should standardise how tests are run from the Drupal root directory so that Unit, Kernel, and Functional tests are all consistent.
- 🇬🇧United Kingdom catch
Haven't reviewed the whole patch properly but +1 going straight to an exception here.
I went back through git history and this was added when the original patch for .info files went in, before that, modules were discovered via the presence of a .module file, so it was a bc layer for shipping .module and no .info.
Now, .info.yml is how we identify modules/extensions at all, so an extension without a .info.yml is impossible (outside of weird tests).
- First commit to issue fork.
- last update
about 1 year ago 30,377 pass - Status changed to RTBC
about 1 year ago 7:19pm 6 October 2023 - 🇺🇸United States smustgrave
Rebased so I could use our fancy new test-only feature
1) Drupal\Tests\Core\Extension\InfoParserUnitTest::testInfoParserNonExisting Failed asserting that exception of type "\Drupal\Core\Extension\InfoParserException" is thrown. /builds/issue/drupal-3391776/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122 /builds/issue/drupal-3391776/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55 /builds/issue/drupal-3391776/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 /builds/issue/drupal-3391776/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684 /builds/issue/drupal-3391776/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651 /builds/issue/drupal-3391776/vendor/phpunit/phpunit/src/TextUI/Command.php:144 /builds/issue/drupal-3391776/vendor/phpunit/phpunit/src/TextUI/Command.php:97 FAILURES!
Updated the IS slightly to show we are just throwing an exception and not deprecation.
looking at the changes nothing is glaring. If anything seems some old crust is getting thrown out.
LGTM.
- last update
about 1 year ago 30,382 pass - last update
about 1 year ago 30,392 pass - last update
about 1 year ago 30,397 pass - last update
about 1 year ago 30,397 pass - last update
about 1 year ago 30,413 pass - last update
about 1 year ago 30,417 pass 31:37 30:27 Running- last update
about 1 year ago 30,426 pass - last update
about 1 year ago 30,436 pass - last update
about 1 year ago 30,438 pass - last update
about 1 year ago 30,464 pass - last update
about 1 year ago 30,481 pass - last update
about 1 year ago 30,483 pass - last update
about 1 year ago 30,486 pass - last update
about 1 year ago 30,486 pass - last update
about 1 year ago 30,510 pass - last update
about 1 year ago 30,516 pass - last update
about 1 year ago 30,519 pass - last update
about 1 year ago 30,530 pass - last update
about 1 year ago 30,558 pass - last update
about 1 year ago 30,602 pass - last update
about 1 year ago 30,604 pass - last update
about 1 year ago 30,605 pass - last update
about 1 year ago 30,668 pass - 🇬🇧United Kingdom longwave UK
This is a behaviour change but really is just removing cruft; I can't see how this would affect anything other than tests with incorrect assumptions, so I think this is eligible for the beta branch.
Committed and pushed 5ef2211afc to 11.x and d80db4487c to 10.2.x. Thanks!
-
longwave →
committed d80db448 on 10.2.x
Issue #3391776 by alexpott, smustgrave, catch: InfoParser returns an...
-
longwave →
committed d80db448 on 10.2.x
- Status changed to Fixed
12 months ago 11:34am 25 November 2023 -
longwave →
committed 5ef2211a on 11.x
Issue #3391776 by alexpott, smustgrave, catch: InfoParser returns an...
-
longwave →
committed 5ef2211a on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.