You are here

protected function MediaBrowserTest::setUp in Lightning Media 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/MediaBrowserTest.php \Drupal\Tests\lightning_media\Functional\MediaBrowserTest::setUp()
  2. 8.3 tests/src/Functional/MediaBrowserTest.php \Drupal\Tests\lightning_media\Functional\MediaBrowserTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/MediaBrowserTest.php, line 43

Class

MediaBrowserTest
@group lightning @group lightning_media

Namespace

Drupal\Tests\lightning_media\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this->nodeType = $this
    ->drupalCreateContentType()
    ->id();
  $this->mediaType = $this
    ->createMediaType([], 'image')
    ->id();
}