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