Skip to content

Commit

Permalink
disable one limit test - it's server specific
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSide666 committed Jul 29, 2016
1 parent 3c3b6d9 commit 7a7e025
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/LimitOrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,18 @@ public function testLimit()

$i = clone $ii;
$i->setLimit(null, 1);
/*
This test is incorrect because last number in rendered query is dependant on server.
For example, on Imants Win10 64-bit this renders as:
select `total_net` from `invoice` order by `total_net` limit 1, 2147483647
On Travis server it renders as:
select `total_net` from `invoice` order by `total_net` limit 1, 9223372036854775807
which still is not equal to max number which SQL server allows - 18446744073709551615
$this->assertEquals(
'select `total_net` from `invoice` order by `total_net` limit 1, 9223372036854775807',
$i->action('select')->render()
);
*/
$this->assertEquals([
['total_net' => 15],
['total_net' => 20],
Expand Down

0 comments on commit 7a7e025

Please sign in to comment.