function WidgetOEmbedTest::setUp
Same name in other branches
- 8.9.x core/modules/media_library/tests/src/FunctionalJavascript/WidgetOEmbedTest.php \Drupal\Tests\media_library\FunctionalJavascript\WidgetOEmbedTest::setUp()
- 10 core/modules/media_library/tests/src/FunctionalJavascript/WidgetOEmbedTest.php \Drupal\Tests\media_library\FunctionalJavascript\WidgetOEmbedTest::setUp()
- 11.x core/modules/media_library/tests/src/FunctionalJavascript/WidgetOEmbedTest.php \Drupal\Tests\media_library\FunctionalJavascript\WidgetOEmbedTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetOEmbedTest.php, line 31
Class
- WidgetOEmbedTest
- Tests that oEmbed media can be added in the Media library's widget.
Namespace
Drupal\Tests\media_library\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
$this->lockHttpClientToFixtures();
$this->hijackProviderEndpoints();
// Create a user who can use the Media library.
$user = $this->drupalCreateUser([
'access content',
'create basic_page content',
'view media',
'create media',
'administer media',
]);
$this->drupalLogin($user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.