Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Based on discussions in #1593058: Remove system.info's files[] entry, we are to move the tests in menu.test over to PSR-0.
Comment | File | Size | Author |
---|---|---|---|
#26 | 1598590.patch | 97.51 KB | RobLoach |
#24 | convert_menu_test_to_psr0-1598590-24.patch | 148.19 KB | Albert Volkman |
#24 | interdiff.txt | 423 bytes | Albert Volkman |
#20 | convert_menu_test_to_psr0-1598590-20.patch | 148.18 KB | Albert Volkman |
#17 | convert_menu_test_to_psr0-1598590-17.patch | 148.18 KB | Albert Volkman |
Comments
Comment #1
Albert Volkman CreditAttribution: Albert Volkman commentedComment #3
aspilicious CreditAttribution: aspilicious commentedYou need to remove the old test file ;)
Remove the "Unit" part
Same
Must be MenuRouterTest
Here I would add "Unit" before Test like we did with other unit tests
Same, add Unit (and don't forget to rename the file)
22 days to next Drupal core point release.
Comment #4
Albert Volkman CreditAttribution: Albert Volkman commentedThanks for the review!
Comment #6
Albert Volkman CreditAttribution: Albert Volkman commentedDidn't load MenuWebTest.
Comment #7
Albert Volkman CreditAttribution: Albert Volkman commentedComment #9
aspilicious CreditAttribution: aspilicious commentedSrry one more thing.
Can we make this MenuTest?
Same
AND
class MenuBreadcrumbTest extends MenuWebTestCase
class MenuTrailTest extends MenuWebTestCase {
should extend MenuWebTestBase
You can fix all of this by applying this patch and just fix the few small problems that are left
22 days to next Drupal core point release.
Comment #10
Albert Volkman CreditAttribution: Albert Volkman commentedSince the class MenuWebTestCase is now MenuTest, shouldn't they be extending MenuTest instead of MenuWebTestBase?
Comment #11
aspilicious CreditAttribution: aspilicious commentedBase classes should end in Base so you should rename MenuTest to MenuTestBase
Comment #12
Albert Volkman CreditAttribution: Albert Volkman commentedComment #14
Albert Volkman CreditAttribution: Albert Volkman commentedRe-roll.
Comment #15
Albert Volkman CreditAttribution: Albert Volkman commentedRenamed functions removing preceding Menu.
Comment #16
aspilicious CreditAttribution: aspilicious commentedTestBase is located in the same namespace so you can remove this line
Same
21 days to next Drupal core point release.
Comment #17
Albert Volkman CreditAttribution: Albert Volkman commentedPatchin' away.
Comment #19
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedThanks @Albert Volkman!
That one should probably extend MenuTestBase, no?
Comment #20
Albert Volkman CreditAttribution: Albert Volkman commentedNah, that'd make too much sense. ;-)
Comment #21
Albert Volkman CreditAttribution: Albert Volkman commentedComment #23
aspilicious CreditAttribution: aspilicious commentedRouterTest.php needs a "use PDO;" on top of the file
Comment #24
Albert Volkman CreditAttribution: Albert Volkman commentedGood times.
Comment #25
Albert Volkman CreditAttribution: Albert Volkman commentedComment #26
RobLoachSame patch with the rename detection, and without the system.info hunk.
Comment #27
aspilicious CreditAttribution: aspilicious commentedGood to go!
Comment #28
RobLoach#26: 1598590.patch queued for re-testing.
Comment #29
webchickCommitted and pushed to 8.x. Thanks!