Closed (fixed)
Project:
SimpleTest
Version:
6.x-2.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Sep 2009 at 15:52 UTC
Updated:
1 Oct 2009 at 21:40 UTC
Jump to comment: Most recent file
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?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 580406-unit-backport.patch | 1.7 KB | boombatower |
Comments
Comment #1
Bevan commentedComment #2
boombatower commentedYep, missed it.
Comment #3
boombatower commentedCommitted.