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: Convert UnitTestBase to PHPUnit.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhedstrom’s picture

Status: Active » Needs review
FileSize
1.61 KB

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.

ParisLiakos’s picture

Status: Needs work » Needs review
Issue tags: +PHPUnit
ParisLiakos’s picture

Status: Needs review » Reviewed & tested by the community

this was just a random failure

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

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

Anonymous’s picture

Issue summary: View changes

Adding link to meta issue.

jhedstrom’s picture