protected function MediaEntityFunctionalTestBase::setUp in Media entity 8
Overrides BrowserTestBase::setUp
3 calls to MediaEntityFunctionalTestBase::setUp()
- MediaAccessTest::setUp in tests/
src/ Functional/ MediaAccessTest.php - MediaBulkFormTest::setUp in tests/
src/ Functional/ MediaBulkFormTest.php - MediaUiFunctionalTest::setUp in tests/
src/ Functional/ MediaUiFunctionalTest.php
3 methods override MediaEntityFunctionalTestBase::setUp()
- MediaAccessTest::setUp in tests/
src/ Functional/ MediaAccessTest.php - MediaBulkFormTest::setUp in tests/
src/ Functional/ MediaBulkFormTest.php - MediaUiFunctionalTest::setUp in tests/
src/ Functional/ MediaUiFunctionalTest.php
File
- tests/
src/ Functional/ MediaEntityFunctionalTestBase.php, line 83
Class
- MediaEntityFunctionalTestBase
- Base class for Media Entity functional tests.
Namespace
Drupal\Tests\media_entity\FunctionalCode
protected function setUp() {
parent::setUp();
// Have two users ready to be used in tests.
$this->adminUser = $this
->drupalCreateUser(static::$adminUserPermissions);
$this->nonAdminUser = $this
->drupalCreateUser([]);
// Start off logged in as admin.
$this
->drupalLogin($this->adminUser);
$this->storage = $this->container
->get('entity_type.manager')
->getStorage('media');
}