summaryrefslogtreecommitdiff
path: root/tests/unit/Data/TDbConnectionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Data/TDbConnectionTest.php')
-rw-r--r--tests/unit/Data/TDbConnectionTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/Data/TDbConnectionTest.php b/tests/unit/Data/TDbConnectionTest.php
index 8f6ff34f..4b32300c 100644
--- a/tests/unit/Data/TDbConnectionTest.php
+++ b/tests/unit/Data/TDbConnectionTest.php
@@ -19,6 +19,10 @@ class TDbConnectionTest extends PHPUnit_Framework_TestCase
{
@unlink(TEST_DB_FILE);
@unlink(TEST_DB_FILE2);
+
+ // create application just to provide application mode
+ new TApplication(__DIR__, false ,TApplication::CONFIG_TYPE_PHP);
+
$this->_connection1=new TDbConnection('sqlite:'.TEST_DB_FILE);
$this->_connection1->Active=true;
$this->_connection1->createCommand('CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name VARCHAR(8))')->execute();
@@ -121,5 +125,3 @@ class TDbConnectionTest extends PHPUnit_Framework_TestCase
$this->assertEquals(TDbNullConversionMode::NullToEmptyString,$this->_connection1->NullConversion);
}
}
-
-?> \ No newline at end of file