コード例 #1
0
 /**
  * Tear down the test environment.
  */
 public function tearDown()
 {
     if ($this->connection->tableExists('writers')) {
         $this->connection->dropTable('writers');
     }
     parent::tearDown();
 }
コード例 #2
0
 /**
  * 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();
 }
コード例 #3
0
 /**
  * Tear down the test environment.
  */
 public function tearDown()
 {
     if ($this->connection->inTransaction()) {
         $this->connection->rollback();
     }
     $this->connection->execute('DROP TABLE `writers`');
     parent::tearDown();
 }
コード例 #4
0
 /**
  * {@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
 /**
  * Tear down the test environment.
  */
 public function tearDown()
 {
     $this->connection->execute('DROP TABLE `writers`');
     parent::tearDown();
 }