You are here

protected function RevisionRouteAccessTest::setUp in Entity API 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/RevisionRouteAccessTest.php, line 44

Class

RevisionRouteAccessTest
Tests the revision route access check.

Namespace

Drupal\Tests\entity\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->placeBlock('local_tasks_block');
  $this
    ->placeBlock('system_breadcrumb_block');
  $this->account = $this
    ->drupalCreateUser([
    'administer entity_test_enhanced',
    'view all entity_test_enhanced revisions',
  ]);
  $this
    ->drupalLogin($this->account);
}