RadioactivityFunctionalJavascriptTestBase.php in Radioactivity 4.0.x
File
tests/src/FunctionalJavascript/RadioactivityFunctionalJavascriptTestBase.php
View source
<?php
namespace Drupal\Tests\radioactivity\FunctionalJavascript;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\Tests\radioactivity\Traits\RadioactivityFunctionTestTrait;
abstract class RadioactivityFunctionalJavascriptTestBase extends WebDriverTestBase {
use RadioactivityFunctionTestTrait;
protected $defaultTheme = 'stark';
protected $adminUser;
protected $entity;
protected static $modules = [
'radioactivity',
'node',
'field',
'field_ui',
'entity_test',
];
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'administer entity_test fields',
'administer entity_test form display',
'administer entity_test display',
'administer entity_test content',
'view test entity',
]);
$this
->drupalLogin($this->adminUser);
$this->entityType = 'entity_type';
$this->entityBundle = 'entity_type';
}
}