Skip to content
This repository has been archived by the owner on Nov 8, 2020. It is now read-only.

Commit

Permalink
Improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
klapuch committed Dec 23, 2016
1 parent 3cbd488 commit 37f1f67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Unit/SqlSort.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,17 @@ final class SqlSort extends Tester\TestCase {
}

public function testReplacingOrderClauseWithoutAffectingLimit() {
$source = 'SELECT * FROM world ORDER BY number DESC LimiT 5';
$source = 'SELECT * FROM world ORDER BY number DESC limit 5';
Assert::same(
'SELECT * FROM world ORDER BY name DESC LimiT 5',
'SELECT * FROM world ORDER BY name DESC limit 5',
(new Dataset\SqlSort(['name' => 'DESC']))->expression($source)
);
}

public function testReplacingOrderClauseWithoutAffectingOffset() {
$source = 'SELECT * FROM world ORDER BY number DESC OffseT 5';
$source = 'SELECT * FROM world ORDER BY number DESC offset 5';
Assert::same(
'SELECT * FROM world ORDER BY name DESC OffseT 5',
'SELECT * FROM world ORDER BY name DESC offset 5',
(new Dataset\SqlSort(['name' => 'DESC']))->expression($source)
);
}
Expand Down

0 comments on commit 37f1f67

Please sign in to comment.