- Issue created by @mstrelan
tanushree gupta β made their first commit to this issueβs fork.
- π¦πΊAustralia mstrelan
@tanushree gupta I see a fork has been created but no code has been pushed to it. Please reach out if you are having trouble, or if you're no longer working on it you can leave a comment so another novice contributor may pick it up.
- π¨π¦Canada danrod Ottawa
Both files are almost identical, except that
/core/modules/system/tests/src/Functional/GenericTest.php
contains an extra "Use" statement that might be required in other test files.I deleted the
core/modules/system/tests/src/Functional/Module/GenericTest.php
as suggested above, run some tests and had no issues.daniel@drupal:/var/www/html$ ./vendor/bin/phpunit -c ./web/core/phpunit.xml /var/www/html/web/core/modules/system/tests/src/Functional/Module PHPUnit 10.5.45 by Sebastian Bergmann and contributors. Runtime: PHP 8.3.23 Configuration: /var/www/html/web/core/phpunit.xml ............S.............. 27 / 27 (100%) HTML output was generated. http://localhost/sites/simpletest/browser_output/Drupal_Tests_system_Functional_Module_ClassLoaderTest-17-91122015.html http://localhost/sites/simpletest/browser_output/Drupal_Tests_system_Functional_Module_ClassLoaderTest-18-91122015.html http://localhost/sites/simpletest/browser_output/Drupal_Tests_system_Functional_Module_ClassLoaderTest-19-40134029.html http://localhost/sites/simpletest/browser_output/Drupal_Tests_system_Functional_Module_ClassLoaderTest-20-40134029.html http://localhost/sites/simpletest/browser_output/Drupal_Tests_system_Functional_Module_ClassLoaderTest-21-46941890.html http://localhost/sites/simpletest/browser_output/Drupal_Tests_system_Functional_Module_ClassLoaderTest-22-46941890.html ... ... ... http://localhost/sites/simpletest/browser_output/Drupal_Tests_system_Functional_Module_VersionTest-14-13678813.html http://localhost/sites/simpletest/browser_output/Drupal_Tests_system_Functional_Module_VersionTest-15-13678813.html http://localhost/sites/simpletest/browser_output/Drupal_Tests_system_Functional_Module_VersionTest-16-13678813.html Time: 08:12.027, Memory: 8.00 MB OK, but some tests were skipped!
- @danrod opened merge request.
- π§πͺBelgium BramDriesen Belgium π§πͺ
Looks good to me. Also referencing the issue where those test cases where initially added and why they exist.
core/modules/system/tests/src/Functional/GenericTest.php is indeed the one to keep.
- π¦πΊAustralia mstrelan
Between @danrod, @bramdriesen and myself we've got 47 years of experience to get this novice issue in. I tagged it hoping it could help a new contributor. Nevertheless, let's get this in, maybe we can all opt out of receiving credit for this one.
- π¨π¦Canada danrod Ottawa
In my defense, I only have 3 Drupal Core credits in total, so I guess I could be considered a "novice" user in this matter, but yes, I'm also fine with opting out of the credits on this one.
Cheers!
- π§πͺBelgium BramDriesen Belgium π§πͺ
I came here because of a slack discussion. If a review can help land an issue I will do so (a bit in the light of the boy scout rule). I actively try to avoid working on novice issues and even create novice issues for the modules I maintain for others to pick up π. But reviewing a core issue in my perspective might fall outside of a novice task. Especially one like this where one might think you can just delete the two empty test cases.
- π¬π§United Kingdom catch
Committed/pushed to 11.x, thanks!
I added credit for everyone here including tanushree gupta because they confirmed they were beaten to it on this issue in slack.
While this was tagged novice, extra entire test classes that run for no reason are confusing and waste CI time so it's good to resolve this one.