You are here

protected function XBBCodeAdminTest::setUp in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/XBBCodeAdminTest.php \Drupal\Tests\xbbcode\Functional\XBBCodeAdminTest::setUp()

Throws

\Behat\Mink\Exception\ExpectationException

\Drupal\Core\Entity\EntityStorageException

Overrides BrowserTestBase::setUp

File

tests/src/Functional/XBBCodeAdminTest.php, line 60

Class

XBBCodeAdminTest
Test the administrative interface.

Namespace

Drupal\Tests\xbbcode\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Basic page',
  ]);
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer filters',
    'administer custom BBCode tags',
    'administer BBCode tag sets',
    'access site reports',
  ]);
  $this->webUser = $this
    ->drupalCreateUser([
    'create page content',
    'edit own page content',
  ]);
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this->customTag = $this
    ->createCustomTag(FALSE);
}