CollapsiblockJavaScriptTestBase.php in Collapsiblock 4.x
File
tests/src/FunctionalJavascript/CollapsiblockJavaScriptTestBase.php
View source
<?php
namespace Drupal\Tests\collapsiblock\FunctionalJavascript;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\Tests\collapsiblock\Traits\GlobalSettingsTrait;
use Drupal\Tests\collapsiblock\Traits\InstanceSettingsTrait;
abstract class CollapsiblockJavaScriptTestBase extends WebDriverTestBase {
use GlobalSettingsTrait;
use InstanceSettingsTrait;
protected static $modules = [
'block',
'collapsiblock',
];
protected $defaultTheme = 'stark';
private $collapsiblockUnprivilegedUser;
protected function setUp() : void {
parent::setUp();
$this->collapsiblockUnprivilegedUser = $this
->createUser([
'access content',
]);
}
protected function getCollapsiblockUnprivilegedUser() {
return $this->collapsiblockUnprivilegedUser;
}
}