public function KernelTestBase::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
4 calls to KernelTestBase::setUp()
- CacheableResponseSubscriberTest::setUp in tests/
src/ Kernel/ TagsHeader/ CacheableResponseSubscriberTest.php - Set up the test object.
- PluginTestBase::setUp in tests/
src/ Kernel/ Invalidation/ PluginTestBase.php - Set up the test.
- ProxyItemTest::setUp in tests/
src/ Kernel/ Queue/ ProxyItemTest.php - Set up the test object.
- TxBufferTest::setUp in tests/
src/ Kernel/ Queue/ TxBufferTest.php - Set up the test object.
4 methods override KernelTestBase::setUp()
- CacheableResponseSubscriberTest::setUp in tests/
src/ Kernel/ TagsHeader/ CacheableResponseSubscriberTest.php - Set up the test object.
- PluginTestBase::setUp in tests/
src/ Kernel/ Invalidation/ PluginTestBase.php - Set up the test.
- ProxyItemTest::setUp in tests/
src/ Kernel/ Queue/ ProxyItemTest.php - Set up the test object.
- TxBufferTest::setUp in tests/
src/ Kernel/ Queue/ TxBufferTest.php - Set up the test object.
File
- tests/
src/ Kernel/ KernelTestBase.php, line 28
Class
- KernelTestBase
- Thin and generic KernelTestBase for purge tests.
Namespace
Drupal\Tests\purge\KernelCode
public function setUp($switch_to_memory_queue = TRUE) : void {
parent::setUp();
$this
->installConfig([
'purge',
]);
// The default 'database' queue backend gives issues, switch to 'memory'.
if ($switch_to_memory_queue) {
$this
->setMemoryQueue();
}
}