From 99bed7d1149749d6cc96c6b5b87cbac8682753ce Mon Sep 17 00:00:00 2001 From: David Date: Tue, 5 Aug 2014 23:02:07 +0200 Subject: Fix System.Data test cases (cherry picked from commit c8682f71ca510b63d67bcf5c28e29992bfed94f2) --- tests/unit/Data/TDbCommandTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/unit/Data/TDbCommandTest.php') diff --git a/tests/unit/Data/TDbCommandTest.php b/tests/unit/Data/TDbCommandTest.php index a75674bf..ab2a4435 100644 --- a/tests/unit/Data/TDbCommandTest.php +++ b/tests/unit/Data/TDbCommandTest.php @@ -15,6 +15,10 @@ class TDbCommandTest 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(); @@ -217,4 +221,4 @@ class TDbCommandTest extends PHPUnit_Framework_TestCase } } -?> \ No newline at end of file +?> -- cgit v1.2.3