diff --git a/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php b/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php index 37d0a66c6..29a58ecd6 100644 --- a/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php @@ -1658,7 +1658,7 @@ class DboSourceTest extends CakeTestCase { public function testConditionKeysToStringVirtualFieldExpression() { $Article = ClassRegistry::init('Article'); $Article->virtualFields = array( - 'extra' => DboSource::expression('something virtual') + 'extra' => $Article->getDataSource()->expression('something virtual') ); $conn = $this->getMock('MockPDO', array('quote')); $db = new DboTestSource();