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

See #1938068: [Meta] Convert UnitTestBase to PHPUnit.

Files: 
CommentFileSizeAuthor
#1 system-database-phpunit-2003342-01.patch1.61 KBjhedstrom
PASSED: [[SimpleTest]]: [MySQL] 55,832 pass(es).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new1.61 KB
PASSED: [[SimpleTest]]: [MySQL] 55,832 pass(es).
[ View ]

Here's the conversion for the EmptyStatementTest.

Status:Needs review» Needs work
Issue tags:-phpunit

The last submitted patch, system-database-phpunit-2003342-01.patch, failed testing.

Status:Needs work» Needs review
Issue tags:+phpunit

Status:Needs review» Reviewed & tested by the community

this was just a random failure

Status:Reviewed & tested by the community» Fixed

Committed/pushed to 8.x, thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.

Issue summary:View changes

Adding link to meta issue.