You are here

protected function MediaRevisionsUiTest::setUp in Media Revisions UI 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/MediaRevisionsUiTest.php \Drupal\Tests\media_revisions_ui\Functional\MediaRevisionsUiTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/MediaRevisionsUiTest.php, line 61

Class

MediaRevisionsUiTest
Tests media revisions UI.

Namespace

Drupal\Tests\media_revisions_ui\Functional

Code

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

  /** @var \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager */
  $entityTypeManager = $this->container
    ->get('entity_type.manager');
  $this->mediaStorage = $entityTypeManager
    ->getStorage('media');
  $this
    ->drupalPlaceBlock('local_tasks_block');
  $this->mediaType = $this
    ->createMediaType('test');
}