public function ViewsBulkEditTest::setUp in Views Bulk Edit 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ ViewsBulkEditTest.php, line 27
Class
- ViewsBulkEditTest
- Tests the Views Bulk Edit feature.
Namespace
Drupal\Tests\views_bulk_edit\FunctionalCode
public function setUp() {
parent::setUp();
$this
->createContentType([
'type' => 'page',
'name' => 'Page',
]);
$this
->createContentType([
'type' => 'article',
'name' => 'Article',
]);
$admin = $this
->createUser([
'bypass node access',
'access content overview',
'use views bulk edit',
'access content',
'administer content types',
// Likely a bug in core, NodeAccessControlHandler::checkFieldAccess().
'administer nodes',
]);
$this
->drupalLogin($admin);
}