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