Example #1
0
 protected function setUp()
 {
     Propel::init(dirname(__FILE__) . '/../../../../Fixtures/bookstore/build/conf/bookstore-conf.php');
     parent::setUp();
     $this->savedAdapter = Propel::getDB(null);
     Propel::setDB(null, new DBSQLite());
 }
Example #2
0
 protected function setUp()
 {
     Propel::init(dirname(__FILE__) . '/../../../../Fixtures/bookstore/build/conf/bookstore-conf.php');
     parent::setUp();
     $this->savedAdapter = Propel::getServiceContainer()->getAdapter(null);
     Propel::getServiceContainer()->setAdapter(null, new SqliteAdapter());
 }
 protected function setUp()
 {
     Propel::init(__DIR__ . '/../../../../Fixtures/bookstore/build/conf/bookstore-conf.php');
     parent::setUp();
     $this->c = new Criteria();
     $this->savedAdapter = Propel::getDB(null);
     Propel::setDB(null, new DBSQLite());
 }
Example #4
0
 protected function setUp()
 {
     Propel::init(__DIR__ . '/../../../../Fixtures/bookstore/build/conf/bookstore-conf.php');
     parent::setUp();
     $this->c = new Criteria();
     $defaultDatasource = Propel::getServiceContainer()->getDefaultDatasource();
     $this->savedAdapter = Propel::getServiceContainer()->getAdapter($defaultDatasource);
     Propel::getServiceContainer()->setAdapter($defaultDatasource, new SqliteAdapter());
 }