Skip to content
Permalink
Browse files

Fix #11870 Correct tests expressions for Dbo VirtualFields

  • Loading branch information...
Philippe Gibert
Philippe Gibert committed Mar 28, 2018
1 parent 98bc995 commit 292dc17fc2ee6f815dde7f69eb091fe244dae473
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
@@ -1658,7 +1658,7 @@ public function testConditionKeysToString() {
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();

0 comments on commit 292dc17

Please sign in to comment.
You can’t perform that action at this time.