public function BuildTriggerTest::testPreventBuildViaModule in Build Hooks 3.x
Tests a module can prevent a build.
File
- tests/
src/ Kernel/ BuildTriggerTest.php, line 30
Class
- BuildTriggerTest
- Defines a class for testing plugins can prevent builds.
Namespace
Drupal\Tests\build_hooks\KernelCode
public function testPreventBuildViaModule() {
$this
->assertFrontendEnvironmentBuildHook('build_hooks_test', TriggerInterface::DEPLOYMENT_STRATEGY_ENTITYSAVE, NULL, [
'whiz' => 'no deploy for you module',
]);
}