public function BrowserTestBase::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 BrowserTestBase::setUp
3 calls to BrowserTestBase::setUp()
- DashboardTestBase::setUp in modules/
purge_ui/ tests/ src/ Functional/ DashboardTestBase.php - Setup the test.
- FormTestBase::setUp in modules/
purge_ui/ tests/ src/ Functional/ Form/ FormTestBase.php - Set up the test object.
- SystemPerformanceFormTest::setUp in modules/
purge_ui/ tests/ src/ Functional/ Form/ SystemPerformanceFormTest.php - Setup the test.
3 methods override BrowserTestBase::setUp()
- DashboardTestBase::setUp in modules/
purge_ui/ tests/ src/ Functional/ DashboardTestBase.php - Setup the test.
- FormTestBase::setUp in modules/
purge_ui/ tests/ src/ Functional/ Form/ FormTestBase.php - Set up the test object.
- SystemPerformanceFormTest::setUp in modules/
purge_ui/ tests/ src/ Functional/ Form/ SystemPerformanceFormTest.php - Setup the test.
File
- tests/
src/ Functional/ BrowserTestBase.php, line 33
Class
- BrowserTestBase
- Thin and generic WTB for purge tests.
Namespace
Drupal\Tests\purge\FunctionalCode
public function setUp($switch_to_memory_queue = TRUE) : void {
parent::setUp();
// The default 'database' queue backend gives issues, switch to 'memory'.
if ($switch_to_memory_queue) {
$this
->setMemoryQueue();
}
}