You are here

public function CacheableResponseSubscriberTest::setUp in Purge 8.3

Set up the test object.

Parameters

bool $switch_to_memory_queue: Whether to switch the default queue to the memory backend or not.

Overrides KernelTestBase::setUp

File

tests/src/Kernel/TagsHeader/CacheableResponseSubscriberTest.php, line 42

Class

CacheableResponseSubscriberTest
Tests \Drupal\purge\EventSubscriber\CacheableResponseSubscriber.

Namespace

Drupal\Tests\purge\Kernel\TagsHeader

Code

public function setUp($switch_to_memory_queue = TRUE) : void {
  parent::setUp();
  \Drupal::service('router.builder')
    ->rebuild();
}