function AssertPreconditionsTrait::setUpBeforeClass
Invokes the test preconditions assertion before the first test is run.
"Use" this trait on any Package Manager test class that directly extends a Core test class, i.e., any class that does NOT extend a test class in a Package Manager test namespace. If that class implements this method, too, be sure to call this first thing in it.
File
-
core/
modules/ package_manager/ tests/ src/ Traits/ AssertPreconditionsTrait.php, line 22
Class
- AssertPreconditionsTrait
- Asserts preconditions for tests to function properly.
Namespace
Drupal\Tests\package_manager\TraitsCode
public static function setUpBeforeClass() : void {
parent::setUpBeforeClass();
static::failIfUnmetPreConditions('before');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.