diff --git a/tests/TestCase/ORM/QueryRegressionTest.php b/tests/TestCase/ORM/QueryRegressionTest.php index b25a339fb17..4026d9f5bb7 100644 --- a/tests/TestCase/ORM/QueryRegressionTest.php +++ b/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());