Skip to content
Permalink
Browse files

One last try for the day

  • Loading branch information...
lorenzo committed May 29, 2016
1 parent 50f90ba commit 665254c9d24d6ff80056f510b4fde72c15524ba6
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/TestCase/ORM/QueryRegressionTest.php
@@ -562,7 +562,7 @@ public function testDeepHasManyEitherStrategy()
]);
$findViaSelect = $featuredTags
->find()
->where(['FeaturedTags.tag_id' => 3])
->where(['FeaturedTags.tag_id' => 1])
->contain('Tags.TagsTranslations')
->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());

0 comments on commit 665254c

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