protected function MediaRevisionsTestBase::setUp in Media Revisions UI 8
Same name and namespace in other branches
- 2.0.x tests/src/Functional/MediaRevisionsTestBase.php \Drupal\Tests\media_revisions_ui\Functional\MediaRevisionsTestBase::setUp()
Overrides BrowserTestBase::setUp
1 call to MediaRevisionsTestBase::setUp()
- MediaRevisionsUiAccessTest::setUp in tests/
src/ Functional/ MediaRevisionsUiAccessTest.php
1 method overrides MediaRevisionsTestBase::setUp()
- MediaRevisionsUiAccessTest::setUp in tests/
src/ Functional/ MediaRevisionsUiAccessTest.php
File
- tests/
src/ Functional/ MediaRevisionsTestBase.php, line 28
Class
- MediaRevisionsTestBase
- Provides base class with common methods to use in tests.
Namespace
Drupal\Tests\media_revisions_ui\FunctionalCode
protected function setUp() {
parent::setUp();
/** @var \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager */
$entityTypeManager = \Drupal::service('entity_type.manager');
$this->mediaStorage = $entityTypeManager
->getStorage('media');
}