You are here

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

Tests generic front-end environment deployments.

@dataProvider providerFrontendEnvironment

File

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

Class

BuildTriggerTest
Defines a class for testing plugins can prevent builds.

Namespace

Drupal\Tests\build_hooks\Kernel

Code

public function testGenericFrontendEnvironment(string $deployment_strategy = TriggerInterface::DEPLOYMENT_STRATEGY_MANUAL) {
  $this
    ->assertFrontendEnvironmentBuildHook('generic', $deployment_strategy, 'http://example.com?foo=bar', [
    'build_hook_url' => 'http://example.com?foo=bar',
  ], new Response(201, [], 'Hello, Generic'));
}