Be more specific with the schema and record we want to load.
@@ -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],
@@ -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);