Skip to content

Commit

Permalink
Remove problematic field
Browse files Browse the repository at this point in the history
Selecting the id doesn't test more types and causes issues in sqlserver.
  • Loading branch information
markstory committed Apr 4, 2018
1 parent b9b6983 commit 20fb859
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/TestCase/Database/QueryTest.php
Expand Up @@ -4580,7 +4580,6 @@ public function testCastResults()
$this->loadFixtures('Profiles');
$query = new Query($this->connection);
$fields = [
'id' => 'integer',
'user_id' => 'integer',
'is_active' => 'boolean'
];
Expand All @@ -4593,7 +4592,7 @@ public function testCastResults()
->where(['id' => 1])
->execute()
->fetchAll('assoc');
$this->assertSame([['id' => 1, 'user_id' => 1, 'is_active' => false, 'a' => 1]], $results);
$this->assertSame([['user_id' => 1, 'is_active' => false, 'a' => 1]], $results);
}

/**
Expand Down

0 comments on commit 20fb859

Please sign in to comment.