From 292dc17fc2ee6f815dde7f69eb091fe244dae473 Mon Sep 17 00:00:00 2001 From: Philippe Gibert Date: Wed, 28 Mar 2018 13:49:45 +0200 Subject: [PATCH] Fix #11870 Correct tests expressions for Dbo VirtualFields --- lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();