function AssertPreconditionsTrait::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.
2 methods override AssertPreconditionsTrait::tearDown()
- PackageManagerKernelTestBase::tearDown in core/
modules/ package_manager/ tests/ src/ Kernel/ PackageManagerKernelTestBase.php - TemplateProjectTestBase::tearDown in core/
modules/ package_manager/ tests/ src/ Build/ TemplateProjectTestBase.php
File
-
core/
modules/ package_manager/ tests/ src/ Traits/ AssertPreconditionsTrait.php, line 33
Class
- AssertPreconditionsTrait
- Asserts preconditions for tests to function properly.
Namespace
Drupal\Tests\package_manager\TraitsCode
protected function tearDown() : void {
parent::tearDown();
static::failIfUnmetPreConditions('after');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.