function ContainerRebuildWebTest::testSetContainerRebuildWithDifferentDeploymentIdentifier
Same name in other branches
- 9 core/modules/system/tests/src/Functional/DrupalKernel/ContainerRebuildWebTest.php \Drupal\Tests\system\Functional\DrupalKernel\ContainerRebuildWebTest::testSetContainerRebuildWithDifferentDeploymentIdentifier()
- 8.9.x core/modules/system/tests/src/Functional/DrupalKernel/ContainerRebuildWebTest.php \Drupal\Tests\system\Functional\DrupalKernel\ContainerRebuildWebTest::testSetContainerRebuildWithDifferentDeploymentIdentifier()
- 11.x core/modules/system/tests/src/Functional/DrupalKernel/ContainerRebuildWebTest.php \Drupal\Tests\system\Functional\DrupalKernel\ContainerRebuildWebTest::testSetContainerRebuildWithDifferentDeploymentIdentifier()
Sets a different deployment identifier.
File
-
core/
modules/ system/ tests/ src/ Functional/ DrupalKernel/ ContainerRebuildWebTest.php, line 29
Class
- ContainerRebuildWebTest
- Ensures that the container rebuild works as expected.
Namespace
Drupal\Tests\system\Functional\DrupalKernelCode
public function testSetContainerRebuildWithDifferentDeploymentIdentifier() : void {
$assert = $this->assertSession();
// Ensure the parameter is not set.
$this->drupalGet('<front>');
$assert->responseHeaderEquals('container_rebuild_indicator', NULL);
$this->writeSettings([
'settings' => [
'deployment_identifier' => (object) [
'value' => 'new-identifier',
'required' => TRUE,
],
],
]);
$this->drupalGet('<front>');
$assert->responseHeaderEquals('container_rebuild_indicator', 'new-identifier');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.