function ContainerResetWebTest::testContainerRebuild
Same name in other branches
- 11.x core/modules/system/tests/src/Functional/DrupalKernel/ContainerResetWebTest.php \Drupal\Tests\system\Functional\DrupalKernel\ContainerResetWebTest::testContainerRebuild()
Sets a different deployment identifier.
File
-
core/
modules/ system/ tests/ src/ Functional/ DrupalKernel/ ContainerResetWebTest.php, line 52
Class
- ContainerResetWebTest
- Ensures that the container rebuild works as expected.
Namespace
Drupal\Tests\system\Functional\DrupalKernelCode
public function testContainerRebuild() : void {
$this->drupalLogin($this->drupalCreateUser());
$this->drupalGet('container_rebuild_test/container_reset');
$this->assertSession()
->pageTextContains('Before the container was reset');
$this->assertSession()
->pageTextContains('After the container was reset');
$this->drupalGet('es/container_rebuild_test/container_reset');
$this->assertSession()
->pageTextContains('Antes de que el contenedor fuera reiniciado.');
$this->assertSession()
->pageTextContains('Después de que el contenedor fue reiniciado.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.