Permalink
Browse files

Correct test

  • Loading branch information...
dereuromark committed Oct 31, 2014
1 parent bb67df4 commit 0f9890720e07d6b98c751ce0c70fa67be7c9f32b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
@@ -3449,7 +3449,7 @@ public function testVirtualFieldsWithSubquery() {
$expected = 'SELECT `Comment`.`id`, `Comment`.`article_id`, `Comment`.`user_id`, `Comment`.`comment`, `Comment`.`published`, `Comment`.`created`,' .
' `Comment`.`updated`, (SELECT id FROM comments WHERE id = (SELECT 1)) AS `Comment__extra`' .
' FROM `cake_test`.`comments` AS `Comment` WHERE `Comment`.`article_id` IN (1, 2)';
' FROM `cakephp_test`.`comments` AS `Comment` WHERE `Comment`.`article_id` IN (1, 2)';
$log = $test->getLog();
$this->assertTextEquals($expected, $log['log'][count($log['log']) - 2]['query']);

0 comments on commit 0f98907

Please sign in to comment.