function ViewsUiIntegrationTest::setUp
Same name in other branches
- 9 core/modules/media_library/tests/src/FunctionalJavascript/ViewsUiIntegrationTest.php \Drupal\Tests\media_library\FunctionalJavascript\ViewsUiIntegrationTest::setUp()
- 10 core/modules/media_library/tests/src/FunctionalJavascript/ViewsUiIntegrationTest.php \Drupal\Tests\media_library\FunctionalJavascript\ViewsUiIntegrationTest::setUp()
- 11.x core/modules/media_library/tests/src/FunctionalJavascript/ViewsUiIntegrationTest.php \Drupal\Tests\media_library\FunctionalJavascript\ViewsUiIntegrationTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ ViewsUiIntegrationTest.php, line 20
Class
- ViewsUiIntegrationTest
- Tests Media Library's integration with Views UI.
Namespace
Drupal\Tests\media_library\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
// Create a few example media items for use in selection.
$this->createMediaItems([
'type_one' => [
'Horse',
'Bear',
'Cat',
'Dog',
],
'type_two' => [
'Crocodile',
'Lizard',
'Snake',
'Turtle',
],
]);
$account = $this->drupalCreateUser([
'administer views',
]);
$this->drupalLogin($account);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.