You are here

public function BuildHooksConfigEntityTest::testFrontendEnvironment in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x tests/src/Kernel/BuildHooksConfigEntityTest.php \Drupal\Tests\build_hooks\Kernel\BuildHooksConfigEntityTest::testFrontendEnvironment()

Tests front-end environment deployments.

@dataProvider providerFrontendEnvironment

File

tests/src/Kernel/BuildHooksConfigEntityTest.php, line 19

Class

BuildHooksConfigEntityTest
Tests behaviour of the config-entity + plugin system.

Namespace

Drupal\Tests\build_hooks\Kernel

Code

public function testFrontendEnvironment(string $deployment_strategy = TriggerInterface::DEPLOYMENT_STRATEGY_ENTITYSAVE) {
  $this
    ->assertFrontendEnvironmentBuildHook('build_hooks_test', $deployment_strategy, 'http://example.com?whiz=bar', [
    'whiz' => 'bar',
  ]);
}