Skip to content
Permalink
Browse files

Seems like SQL Server is missing the ids for a fixture without autoin…

…crement
  • Loading branch information...
lorenzo committed May 29, 2016
1 parent 6aa63ba commit 2c7fa4a7c99c4776b094e0a81ccb93891ca20166
Showing with 4 additions and 4 deletions.
  1. +3 −3 tests/Fixture/TagsTranslationsFixture.php
  2. +1 −1 tests/TestCase/ORM/QueryRegressionTest.php
@@ -41,8 +41,8 @@ class TagsTranslationsFixture extends TestFixture
* @var array
*/
public $records = [
['locale' => 'en_us', 'name' => 'tag 1 translated into en_us'],
['locale' => 'en_us', 'name' => 'tag 2 translated into en_us'],
['locale' => 'en_us', 'name' => 'tag 3 translated into en_us']
['id' => 1, 'locale' => 'en_us', 'name' => 'tag 1 translated into en_us'],
['id' => 2, 'locale' => 'en_us', 'name' => 'tag 2 translated into en_us'],
['id' => 3, 'locale' => 'en_us', 'name' => 'tag 3 translated into en_us']
];
}
@@ -572,7 +572,7 @@ public function testDeepHasManyEitherStrategy()
$findViaSubquery = $featuredTags
->find()
->where(['FeaturedTags.tag_id' => 2])
->contain(['Tags.TagsTranslations' => ['sort' => 'TagsTranslations.id']]);
->contain('Tags.TagsTranslations');
$expected = [2 => 'tag 2 translated into en_us'];

0 comments on commit 2c7fa4a

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