A test class that extends DrupalUnitTestCase breaks because that class requires the Database class, which doesn't exists in Drupal 6. This is the error;

  Fatal error: Class 'Database' not found in [truncated]/simpletest/drupal_web_test_case.php on line 560

That line reads

 $db_prefix = Database::getConnection()->prefixTables('{simpletest' . mt_rand(1000, 1000000) . '}');

Looks like this line didn't get ported to Drupal 6?

CommentFileSizeAuthor
#2 580406-unit-backport.patch1.7 KBboombatower

Comments

Bevan’s picture

Title: DrupalUnitTestCase requires Database » DrupalUnitTestCase requires Database class
Status: Active » Needs work
boombatower’s picture

Assigned: Unassigned » boombatower
Status: Needs work » Needs review
StatusFileSize
new1.7 KB

Yep, missed it.

boombatower’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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