protected function tearDown() { if ($this->storedRecord) { $this->rm->scheduleDelete($this->storedRecord); } if ($this->relatedRecord) { $this->rm->scheduleDelete($this->relatedRecord); } $this->rm->commit(); parent::tearDown(); }
protected function tearDown() { parent::tearDown(); foreach ($this->revertTableForDbSchemas as $table => $conn) { $driver = $conn->getDriver(); $dropMigration = $driver->createSchemaMigration($conn, $table, Migration::DROP_TABLE); $dropMigration->execute(); $createMigration = $driver->createSchemaMigration($conn, $table, Migration::CREATE_TABLE); $createMigration->importFromSchema(self::getSchema()); $createMigration->execute(); } }
protected function tearDown() { parent::tearDown(); $this->rm->clearTables(); }