Skip to content

Commit

Permalink
Fixing the same test again
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jun 6, 2015
1 parent 0d61776 commit 25d9297
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/TestCase/ORM/QueryTest.php
Expand Up @@ -2662,15 +2662,19 @@ public function testSelectWithTableAndAssociationInstance()
$table->belongsTo('authors');
$result = $table
->find()
->select(['foo' => '1 + 1'])
->select(function ($q) {
return ['foo' => $q->newExpr('1 + 1')];
})
->select($table)
->select($table->authors)
->contain(['authors'])
->first();

$expected = $table
->find()
->select(['foo' => '1 + 1'])
->select(function ($q) {
return ['foo' => $q->newExpr('1 + 1')];
})
->autoFields(true)
->contain(['authors'])
->first();
Expand Down

0 comments on commit 25d9297

Please sign in to comment.