QueuerConfigFormTestBase.php in Purge 8.3
File
modules/purge_ui/tests/src/Functional/Form/Config/QueuerConfigFormTestBase.php
View source
<?php
namespace Drupal\Tests\purge_ui\Functional\Form\Config;
abstract class QueuerConfigFormTestBase extends PluginConfigFormTestBase {
protected $route = 'purge_ui.queuer_config_form';
public function setUp($switch_to_memory_queue = TRUE) : void {
parent::setUp($switch_to_memory_queue);
if ($this->dialogRouteTest) {
$this->route = 'purge_ui.queuer_config_dialog_form';
}
$label = $this->purgeQueuers
->getPlugins()[$this->pluginId]['label'];
$this->routeTitle = sprintf("Configure %s", $label);
}
protected function initializePlugin() : void {
$this
->initializeQueuersService([
$this->pluginId,
]);
}
}