You are here

protected function LogTestBase::setUp in Log entity 2.x

Overrides BrowserTestBase::setUp

File

tests/src/Functional/LogTestBase.php, line 51

Class

LogTestBase
Tests the Log CRUD.

Namespace

Drupal\Tests\log\Functional

Code

protected function setUp() {
  parent::setUp();

  /** @var \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager */
  $entity_type_manager = $this->container
    ->get('entity_type.manager');
  $this->storage = $entity_type_manager
    ->getStorage('log');
  $this->adminUser = $this
    ->drupalCreateUser($this
    ->getAdministratorPermissions());
  $this
    ->drupalLogin($this->adminUser);
  drupal_flush_all_caches();
}