Skip to content
Permalink
Browse files

Fix test incompatbile with sqlserver

there is no length() in sqlserver
  • Loading branch information...
markstory committed Oct 27, 2018
1 parent 2e95bae commit 0da10887762b489c34a264afd675bc7e3fca4c56
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/TestCase/ORM/ResultSetTest.php
@@ -445,12 +445,12 @@ public function testCollectionMinAndMax()
public function testCollectionMinAndMaxWithAggregateField()
{
$query = $this->table->find();
$query->select(['count' => 'length(title)']);
$query->select(['count' => 'author_id + 2']);
$min = $query->min('count');
$max = $query->max('count');
$this->assertEquals(13, $min->count);
$this->assertEquals(14, $max->count);
$this->assertEquals(3, $min->count);
$this->assertEquals(5, $max->count);
}
}

0 comments on commit 0da1088

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