You are here

protected function KernelTestBase::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::setUp()
  2. 9 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::setUp()
89 calls to KernelTestBase::setUp()
AccessPermissionTest::setUp in core/modules/user/tests/src/Kernel/Views/AccessPermissionTest.php
AllowedValuesConstraintValidatorTest::setUp in core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php
AnonymousPrivateTempStoreTest::setUp in core/tests/Drupal/KernelTests/Core/TempStore/AnonymousPrivateTempStoreTest.php
AttachedAssetsTest::setUp in core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
BatchKernelTest::setUp in core/tests/Drupal/KernelTests/Core/Batch/BatchKernelTest.php

... See full list

126 methods override KernelTestBase::setUp()
AccessPermissionTest::setUp in core/modules/user/tests/src/Kernel/Views/AccessPermissionTest.php
ActionTest::setUp in core/modules/system/tests/src/Kernel/Action/ActionTest.php
AllowedValuesConstraintValidatorTest::setUp in core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php
AnonymousPrivateTempStoreTest::setUp in core/tests/Drupal/KernelTests/Core/TempStore/AnonymousPrivateTempStoreTest.php
AttachedAssetsTest::setUp in core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php

... See full list

File

core/tests/Drupal/KernelTests/KernelTestBase.php, line 242

Class

KernelTestBase
Base class for functional integration tests.

Namespace

Drupal\KernelTests

Code

protected function setUp() : void {
  parent::setUp();

  // Allow tests to compare MarkupInterface objects via assertEquals().
  $this
    ->registerComparator(new MarkupInterfaceComparator());
  $this->root = static::getDrupalRoot();
  $this
    ->initFileCache();
  $this
    ->bootEnvironment();
  $this
    ->bootKernel();
}