mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix #11870 Correct tests expressions for Dbo VirtualFields
This commit is contained in:
parent
98bc995623
commit
292dc17fc2
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue