protected function WebTestBase::rebuildAll in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/WebTestBase.php \Drupal\simpletest\WebTestBase::rebuildAll()
Reset and rebuild the environment after setup.
1 call to WebTestBase::rebuildAll()
- WebTestBase::setUp in core/
modules/ simpletest/ src/ WebTestBase.php - Sets up a Drupal site for running functional and integration tests.
File
- core/
modules/ simpletest/ src/ WebTestBase.php, line 867 - Contains \Drupal\simpletest\WebTestBase.
Class
- WebTestBase
- Test case for typical Drupal tests.
Namespace
Drupal\simpletestCode
protected function rebuildAll() {
// Reset/rebuild all data structures after enabling the modules, primarily
// to synchronize all data structures and caches between the test runner and
// the child site.
// @see \Drupal\Core\DrupalKernel::bootCode()
// @todo Test-specific setUp() methods may set up further fixtures; find a
// way to execute this after setUp() is done, or to eliminate it entirely.
$this
->resetAll();
$this->kernel
->prepareLegacyRequest(\Drupal::request());
// Explicitly call register() again on the container registered in \Drupal.
// @todo This should already be called through
// DrupalKernel::prepareLegacyRequest() -> DrupalKernel::boot() but that
// appears to be calling a different container.
$this->container
->get('stream_wrapper_manager')
->register();
}