Permalink
Browse files

Fixing a failing test when quoteIdentifiers is involved

  • Loading branch information...
1 parent 17692f3 commit fb689b1e0b04a3f19c30784cd16c8e36cf0968ba @lorenzo lorenzo committed Feb 1, 2014
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/TestCase/ORM/EagerLoaderTest.php
@@ -270,17 +270,16 @@ public function testContainToFieldsPredefined() {
$query = new Query($this->connection, $table);
$loader = new EagerLoader;
$loader->contain($contains);
- $query->select('foo.id')->sql();
+ $query->select('foo.id');
$loader->attachAssociations($query, true);
$select = $query->clause('select');
$expected = [
- 'foo__id' => 'foo.id', 'clients__name' => 'clients.name',
+ 'foo.id', 'clients__name' => 'clients.name',
'clients__company_id' => 'clients.company_id',
'clients__telephone' => 'clients.telephone',
'orders__total' => 'orders.total', 'orders__placed' => 'orders.placed'
];
- $expected = $this->_quoteArray($expected);
$this->assertEquals($expected, $select);
}

0 comments on commit fb689b1

Please sign in to comment.