Browse Source

Attempt to fix the failing appveyor builds.

Be more specific with the schema and record we want to load.
Mark Story 8 years ago
parent
commit
b9b6983f20
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tests/Fixture/ProfilesFixture.php
  2. 1 1
      tests/TestCase/Database/QueryTest.php

+ 1 - 1
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],

+ 1 - 1
tests/TestCase/Database/QueryTest.php

@@ -4590,7 +4590,7 @@ class QueryTest extends TestCase
             ->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);