You are here

public function PrivateTest::setUp in Private 8

Same name and namespace in other branches
  1. 8.2 src/Tests/PrivateTest.php \Drupal\private_content\Tests\PrivateTest::setUp()

Rebuild node access.

Overrides WebTestBase::setUp

File

src/Tests/PrivateTest.php, line 24

Class

PrivateTest
Tests the private module.

Namespace

Drupal\private_content\Tests

Code

public function setUp() {
  parent::setUp();
  $this
    ->createContentType([
    'type' => 'article',
  ]);
  node_access_rebuild();
}