You are here

protected function FunctionalTestSetupTrait::rebuildAll in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php \Drupal\Core\Test\FunctionalTestSetupTrait::rebuildAll()

Resets and rebuilds the environment after setup.

34 calls to FunctionalTestSetupTrait::rebuildAll()
ClaroTest::testConfigSchema in core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php
Tests Claro's configuration schema.
FileUploadResourceTestBase::testFileUploadMaliciousExtension in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload POST route with malicious extensions.
FileUploadTest::setUp in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
FileUploadTest::testFileUploadLargerFileSize in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload route with a file size larger than allowed.
FileUploadTest::testFileUploadMaliciousExtension in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload POST route with malicious extensions.

... See full list

File

core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php, line 489

Class

FunctionalTestSetupTrait
Defines a trait for shared functional test setup functionality.

Namespace

Drupal\Core\Test

Code

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();

  // 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();
}