diff options
Diffstat (limited to 'tests/unit/Data/TDbTransactionTest.php')
-rw-r--r-- | tests/unit/Data/TDbTransactionTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/Data/TDbTransactionTest.php b/tests/unit/Data/TDbTransactionTest.php index c608bce1..7a2b16c2 100644 --- a/tests/unit/Data/TDbTransactionTest.php +++ b/tests/unit/Data/TDbTransactionTest.php @@ -15,6 +15,10 @@ class TDbTransactionTest extends PHPUnit_Framework_TestCase public function setUp() { @unlink(TEST_DB_FILE); + + // create application just to provide application mode + new TApplication(__DIR__, false ,TApplication::CONFIG_TYPE_PHP); + $this->_connection=new TDbConnection('sqlite:'.TEST_DB_FILE); $this->_connection->Active=true; $this->_connection->createCommand('CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name VARCHAR(8))')->execute(); @@ -69,4 +73,4 @@ class TDbTransactionTest extends PHPUnit_Framework_TestCase } } -?>
\ No newline at end of file +?> |