Permalink
Browse files

Add test for #11284

  • Loading branch information...
markstory committed Oct 14, 2017
1 parent d3a4ce1 commit e85f489c1f0d65d62a11d11b0dcce67af069bb42
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php
@@ -397,6 +397,13 @@ public function testDistinctWithLimit() {
));
$result = $this->db->getLastQuery();
$this->assertRegExp('/^SELECT DISTINCT TOP 5/', $result);
$this->db->read($this->model, array(
'fields' => array('DISTINCT SqlserverTestModel.city', 'SqlserverTestModel.country'),
'limit' => '5'
));
$result = $this->db->getLastQuery();
$this->assertRegExp('/^SELECT DISTINCT TOP 5/', $result);
}
/**

0 comments on commit e85f489

Please sign in to comment.