SchedulerJavascriptTestBase.php in Scheduler 8
File
tests/src/FunctionalJavascript/SchedulerJavascriptTestBase.php
View source
<?php
namespace Drupal\Tests\scheduler\FunctionalJavascript;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\Tests\scheduler\Traits\SchedulerSetupTrait;
abstract class SchedulerJavascriptTestBase extends WebDriverTestBase {
use SchedulerSetupTrait;
protected static $modules = [
'scheduler',
];
protected $profile = 'testing';
protected $defaultTheme = 'stark';
protected function setUp() : void {
parent::setUp();
$this
->schedulerSetUp();
}
protected function flushCache() {
$module_handler = \Drupal::moduleHandler();
$module_handler
->invokeAll('cache_flush');
}
}