You are here

protected function CreateUITest::setUp in Entity API 8.0

Overrides BrowserTestBase::setUp

File

tests/src/Functional/CreateUITest.php, line 33
Contains \Drupal\Tests\entity\Functional\CreateUITest.

Class

CreateUITest
Tests the entity creation UI provided by EntityCreateController.

Namespace

Drupal\Tests\entity\Functional

Code

protected function setUp() {
  parent::setUp();
  EnhancedEntityBundle::create([
    'id' => 'first',
    'label' => 'First',
    'description' => 'The first bundle',
  ])
    ->save();
  $account = $this
    ->drupalCreateUser([
    'administer entity_test_enhanced',
  ]);
  $this
    ->drupalLogin($account);
}