Skip to content

Commit

Permalink
Pretty please?
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 29, 2016
1 parent 12936a4 commit 50f90ba
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' => 2])
->where(['FeaturedTags.tag_id' => 3])
->contain('Tags.TagsTranslations')
->all();

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

$expected = [2 => 'tag 2 translated into en_us'];
$expected = [3 => 'tag 3 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 50f90ba

Please sign in to comment.