public function PurgerConfigFormTestBase::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 PluginConfigFormTestBase::setUp
1 call to PurgerConfigFormTestBase::setUp()
- PurgerConfigDialogFormTest::setUp in modules/
purge_ui/ tests/ src/ Functional/ Form/ PurgerConfigDialogFormTest.php - Set up the test object.
1 method overrides PurgerConfigFormTestBase::setUp()
- PurgerConfigDialogFormTest::setUp in modules/
purge_ui/ tests/ src/ Functional/ Form/ PurgerConfigDialogFormTest.php - Set up the test object.
File
- modules/
purge_ui/ tests/ src/ Functional/ Form/ Config/ PurgerConfigFormTestBase.php, line 18
Class
- PurgerConfigFormTestBase
- Testbase for \Drupal\purge_ui\Form\PurgerConfigFormBase derivatives.
Namespace
Drupal\Tests\purge_ui\Functional\Form\ConfigCode
public function setUp($switch_to_memory_queue = TRUE) : void {
parent::setUp($switch_to_memory_queue);
if ($this->dialogRouteTest) {
$this->route = 'purge_ui.purger_config_dialog_form';
}
// Purgers are refered to by instance id.
$this->routeParameters['id'] = $this->instanceId;
$this->formArgs[0]['id'] = $this->instanceId;
// Set the expected route title for the test subject.
$label = $this->purgePurgers
->getLabels()[$this->instanceId];
$this->routeTitle = sprintf("Configure %s", $label);
}