summaryrefslogtreecommitdiff
path: root/test/ConfigTest.php
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2013-08-28 16:59:21 +0100
committerSimon Holywell <[email protected]>2013-08-28 17:02:49 +0100
commitbaff6edcb568c829bc2f82754f023f317d4fd759 (patch)
tree0c71cffedbac44c7caf20afbd2a1b020ff388d17 /test/ConfigTest.php
parent4e9f8928cfc1e72f2d2f7ded3c7187255e400255 (diff)
parent33c3937adce276d1bad6f92201f39da5ed78c1fd (diff)
Add MS SQL `TOP` style syntax support
Diffstat (limited to 'test/ConfigTest.php')
-rw-r--r--test/ConfigTest.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/ConfigTest.php b/test/ConfigTest.php
index 7644181..c65c539 100644
--- a/test/ConfigTest.php
+++ b/test/ConfigTest.php
@@ -14,10 +14,8 @@ class ConfigTest extends PHPUnit_Framework_TestCase {
}
public function tearDown() {
- ORM::configure('logging', false);
- ORM::set_db(null);
-
- ORM::configure('id_column', 'id');
+ ORM::reset_config();
+ ORM::reset_db();
}
protected function setUpIdColumnOverrides() {
@@ -118,6 +116,7 @@ class ConfigTest extends PHPUnit_Framework_TestCase {
'logger' => null,
'caching' => false,
'return_result_sets' => false,
+ 'limit_clause_style' => 'limit',
);
$this->assertEquals($expected, ORM::get_config());
}