protected function setUp()
 {
     if (ezpTestRunner::dsn()->dbsyntax !== "postgresql") {
         self::markTestSkipped("Not running PostgresSQL, skipping");
     }
     parent::setUp();
     ezpTestDatabaseHelper::clean($this->sharedFixture);
 }
Exemplo n.º 2
0
 public static function tearDownAfterClass()
 {
     // We need to clean up after this test case, since database will not
     // be reset by the suite it initialisation has happened once, see pull req. #234
     // Next: Suite which always prepares the db for you.
     $db = ezpTestDatabaseHelper::create(ezpTestRunner::dsn());
     ezpTestDatabaseHelper::clean($db);
     ezpTestDatabaseHelper::insertDefaultData($db);
 }
Exemplo n.º 3
0
 protected function setUp()
 {
     if (!in_array(ezpTestRunner::dsn()->dbsyntax, array('mysql', 'mysqli'))) {
         self::markTestSkipped("Not running MySQL nor MysQLi, skipping");
     }
     parent::setUp();
     // clean up the database so that the tests are independant from the ezp database
     ezpTestDatabaseHelper::clean($this->sharedFixture);
 }