/**
  * Tear down the test environment.
  */
 public function tearDown()
 {
     if ($this->connection->tableExists('writers')) {
         $this->connection->dropTable('writers');
     }
     parent::tearDown();
 }
 /**
  * Tear down the test environment.
  */
 public function tearDown()
 {
     $this->connection->execute('DROP TABLE IF EXISTS `writers1`');
     $this->connection->execute('DROP TABLE IF EXISTS `writers2`');
     $this->connection->execute('DROP TABLE IF EXISTS `writers3`');
     parent::tearDown();
 }
 /**
  * Tear down the test environment.
  */
 public function tearDown()
 {
     if ($this->connection->inTransaction()) {
         $this->connection->rollback();
     }
     $this->connection->execute('DROP TABLE `writers`');
     parent::tearDown();
 }
 /**
  * {@inheritdoc}
  */
 public function tearDown()
 {
     $this->connection->turnOffForeignKeyChecks();
     $this->connection->execute('DROP TABLE IF EXISTS `writers`');
     $this->connection->execute('DROP TABLE IF EXISTS `periods`');
     $this->connection->execute('DROP TABLE IF EXISTS `topics`');
     $this->connection->turnOnForeignKeyChecks();
     $this->assertEquals([], $this->connection->getTableNames());
     parent::tearDown();
 }
Пример #5
0
 /**
  * Set up test environment.
  */
 public function setUp()
 {
     parent::setUp();
     $this->connection = new MysqliConnection($this->link);
 }
 /**
  * Tear down the test environment.
  */
 public function tearDown()
 {
     $this->connection->execute('DROP TABLE `writers`');
     parent::tearDown();
 }