You are here

function AclTest::setUp in ACL 8

Implements setUp().

Overrides BrowserTestBase::setUp

File

src/Tests/AclTest.php, line 41

Class

AclTest
Test case for ACL module.

Namespace

Drupal\acl\Tests

Code

function setUp() : void {
  parent::setUp();
  NodeType::create([
    'type' => 'page',
    'name' => 'Page',
  ])
    ->save();
  NodeType::create([
    'type' => 'article',
    'name' => 'Article',
  ])
    ->save();
  $web_user = $this
    ->drupalCreateUser(array(
    'create page content',
  ));
  $this
    ->drupalLogin($web_user);
}