Skip to content
Permalink
Browse files

Fixed failing tests in mysql due to results ordering

  • Loading branch information...
lorenzo committed Sep 12, 2014
1 parent 9030ab0 commit 934479ddd7beede7628437e76dfae346be26cb34
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/TestCase/ORM/QueryRegressionTest.php
@@ -100,11 +100,12 @@ public function testDuplicateAttachableAliases() {
]);
$table->Things->target()->belongsTo('Stuff', [
'foreignKey' => 'tag_id',
'propertyName' => 'foo']
);
'propertyName' => 'foo'
]);
$results = $table->find()
->contain(['Authors.Stuff', 'Things.Stuff'])
->order(['Articles.id'])
->toArray();
$this->assertEquals(1, $results[0]->articles_tag->foo->id);

0 comments on commit 934479d

Please sign in to comment.
You can’t perform that action at this time.