You are here

protected function EntityDuplicateTest::setUp in Entity API 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/EntityDuplicateTest.php, line 49

Class

EntityDuplicateTest
Tests the entity duplicate UI.

Namespace

Drupal\Tests\entity\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->placeBlock('local_tasks_block');
  $this
    ->placeBlock('page_title_block');
  $this
    ->placeBlock('system_breadcrumb_block');
  $this->account = $this
    ->drupalCreateUser([
    'administer entity_test_enhanced',
  ]);
  $this
    ->drupalLogin($this->account);
  $this->storage = $this->container
    ->get('entity_type.manager')
    ->getStorage('entity_test_enhanced');
}