function RequiresComposerTrait::requiresComposer
@beforeClass
File
-
core/
tests/ Drupal/ TestTools/ Extension/ RequiresComposerTrait.php, line 17
Class
- RequiresComposerTrait
- Ensures Composer executable is available, skips test otherwise.
Namespace
Drupal\TestTools\ExtensionCode
public static function requiresComposer() : void {
if (!(new ExecutableFinder())->find('composer')) {
static::markTestSkipped('This test requires the Composer executable to be accessible.');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.