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.
Task to convert modules/system/lib/Drupal/system/Tests/Database
to phpunit where possible. There are a total of 4:
Database/DatabaseExceptionWrapperTest.php
Database/EmptyStatementTest.php
Database/ConnectionUnitTest.php
Database/SchemaTest.php
From initial testing, I think only one of them can be converted (without more work around mocking a database connection)
Database/EmptyStatementTest.php
Comment | File | Size | Author |
---|---|---|---|
#1 | system-database-phpunit-2003342-01.patch | 1.61 KB | jhedstrom |
Comments
Comment #1
jhedstromHere's the conversion for the EmptyStatementTest.
Comment #3
ParisLiakos CreditAttribution: ParisLiakos commented#1: system-database-phpunit-2003342-01.patch queued for re-testing.
Comment #4
ParisLiakos CreditAttribution: ParisLiakos commentedthis was just a random failure
Comment #5
catchCommitted/pushed to 8.x, thanks!
Comment #6.0
(not verified) CreditAttribution: commentedAdding link to meta issue.
Comment #7
jhedstrom