Skip to content
Permalink
Browse files

Fix incorrect hardcoded database name.

  • Loading branch information...
markstory committed Dec 2, 2014
1 parent dcbfead commit bbfe3170dca7a6b8b53fa4d1b4108e901d89e834
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
@@ -3447,9 +3447,10 @@ public function testVirtualFieldsWithSubquery() {
$test->getLog();
$result = $Article->find('all', compact('conditions', 'contain'));
$expected = 'SELECT `Comment`.`id`, `Comment`.`article_id`, `Comment`.`user_id`, `Comment`.`comment`, `Comment`.`published`, `Comment`.`created`,' .
$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 `cakephp_test`.`comments` AS `Comment` WHERE `Comment`.`article_id` IN (1, 2)';
' FROM ' . $test->fullTableName('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 bbfe317

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.