diff --git a/tests/Fixture/ProfilesFixture.php b/tests/Fixture/ProfilesFixture.php index b566b5e5f12..9fee49701d5 100644 --- a/tests/Fixture/ProfilesFixture.php +++ b/tests/Fixture/ProfilesFixture.php @@ -28,7 +28,7 @@ class ProfilesFixture extends TestFixture * @var array */ public $fields = [ - 'id' => ['type' => 'integer'], + 'id' => ['type' => 'integer', 'null' => false, 'autoIncrement' => true], 'user_id' => ['type' => 'integer', 'null' => false], 'first_name' => ['type' => 'string', 'null' => true], 'last_name' => ['type' => 'string', 'null' => true], diff --git a/tests/TestCase/Database/QueryTest.php b/tests/TestCase/Database/QueryTest.php index b988097ebee..299c08a802c 100644 --- a/tests/TestCase/Database/QueryTest.php +++ b/tests/TestCase/Database/QueryTest.php @@ -4590,7 +4590,7 @@ public function testCastResults() ->select(['a' => 'id']) ->from('profiles') ->setSelectTypeMap($typeMap) - ->limit(1) + ->where(['id' => 1]) ->execute() ->fetchAll('assoc'); $this->assertSame([['id' => 1, 'user_id' => 1, 'is_active' => false, 'a' => 1]], $results);