You are here

public function BuildTriggerTest::testAccessToDeployContents in Build Hooks 3.x

Tests a plugin can prevent a build via access to entities in the deploy.

File

tests/src/Kernel/BuildTriggerTest.php, line 42

Class

BuildTriggerTest
Defines a class for testing plugins can prevent builds.

Namespace

Drupal\Tests\build_hooks\Kernel

Code

public function testAccessToDeployContents() {
  $this
    ->assertFrontendEnvironmentBuildHook('build_hooks_test', TriggerInterface::DEPLOYMENT_STRATEGY_ENTITYSAVE, NULL, [
    'whiz' => 'whang',
  ], NULL, "can't let you do that dave");
}