function TemplateProjectTestBase::tearDown

Same name and namespace in other branches
  1. main core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php \Drupal\Tests\package_manager\Build\TemplateProjectTestBase::tearDown()

Invokes the test preconditions assertion after each test run.

This ensures that no test method leaves behind violations of test preconditions. This makes it trivial to discover broken tests.

Overrides AssertPreconditionsTrait::tearDown

File

core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php, line 91

Class

TemplateProjectTestBase
Base class for tests which create a test site from a core project template.

Namespace

Drupal\Tests\package_manager\Build

Code

protected function tearDown() : void {
  $this->metadataServer?->stop();
  parent::tearDown();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.