protected function ViewUnpublishedViewsTest::setUp in view_unpublished 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ ViewUnpublishedViewsTest.php, line 32
Class
- ViewUnpublishedViewsTest
- Tests the View Unpublished module with views.
Namespace
Drupal\Tests\view_unpublished\FunctionalCode
protected function setUp() {
parent::setUp();
// Rebuild node access which we have to do after installing the module.
$this
->drupalLogin($this->rootUser);
node_access_rebuild();
$this
->drupalLogout();
$this
->createContentType([
'type' => 'page',
]);
$this
->createContentType([
'type' => 'article',
]);
}