public function PathUnitTestBase::tearDown

Deletes created files, database tables, and reverts all environment changes.

This method needs to be invoked for both unit and integration tests.

Overrides DrupalUnitTestBase::tearDown

See also

TestBase::prepareDatabasePrefix()

TestBase::changeDatabasePrefix()

TestBase::prepareEnvironment()

File

drupal/core/modules/system/lib/Drupal/system/Tests/Path/PathUnitTestBase.php, line 26
Contains Drupal\system\Tests\Path\PathUnitTestBase.

Class

PathUnitTestBase
Defines a base class for path unit testing.

Namespace

Drupal\system\Tests\Path

Code

public function tearDown() {
  $this->fixtures
    ->dropTables(Database::getConnection());
  parent::tearDown();
}