You are here

public function ContainerRebuildWebTest::testSetContainerRebuildWithDifferentDeploymentIdentifier in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/src/Tests/DrupalKernel/ContainerRebuildWebTest.php \Drupal\system\Tests\DrupalKernel\ContainerRebuildWebTest::testSetContainerRebuildWithDifferentDeploymentIdentifier()

Sets a different deployment identifier.

File

core/modules/system/src/Tests/DrupalKernel/ContainerRebuildWebTest.php, line 27
Contains \Drupal\system\Tests\DrupalKernel\ContainerRebuildWebTest.

Class

ContainerRebuildWebTest
Ensures that the container rebuild works as expected.

Namespace

Drupal\system\Tests\DrupalKernel

Code

public function testSetContainerRebuildWithDifferentDeploymentIdentifier() {
  $this
    ->drupalGet('<front>');
  $this
    ->assertHeader('container_rebuild_indicator', FALSE);
  $this
    ->writeSettings([
    'settings' => [
      'deployment_identifier' => (object) [
        'value' => 'new-identifier',
        'required' => TRUE,
      ],
    ],
  ]);
  $this
    ->drupalGet('<front>');
  $this
    ->assertHeader('container_rebuild_indicator', 'new-identifier');
}