Skip to content

Commit

Permalink
One last try for the day
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 29, 2016
1 parent 50f90ba commit 665254c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestCase/ORM/QueryRegressionTest.php
Expand Up @@ -562,7 +562,7 @@ public function testDeepHasManyEitherStrategy()
]);
$findViaSelect = $featuredTags
->find()
->where(['FeaturedTags.tag_id' => 3])
->where(['FeaturedTags.tag_id' => 1])
->contain('Tags.TagsTranslations')
->all();

Expand All @@ -572,11 +572,11 @@ public function testDeepHasManyEitherStrategy()
]);
$findViaSubquery = $featuredTags
->find()
->where(['FeaturedTags.tag_id' => 3])
->where(['FeaturedTags.tag_id' => 1])
->contain('Tags.TagsTranslations')
->all();

$expected = [3 => 'tag 3 translated into en_us'];
$expected = [1 => 'tag 1 translated into en_us'];

$this->assertEquals($expected, $findViaSelect->combine('tag_id', 'tag.tags_translations.0.name')->toArray());
$this->assertEquals($expected, $findViaSubquery->combine('tag_id', 'tag.tags_translations.0.name')->toArray());
Expand Down

0 comments on commit 665254c

Please sign in to comment.