protected function OEmbedTestTrait::getFixturesUrl in Drupal 9
Same name and namespace in other branches
- 8 core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::getFixturesUrl()
- 10 core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::getFixturesUrl()
Returns the absolute URL of the oEmbed fixtures directory.
Return value
string
1 call to OEmbedTestTrait::getFixturesUrl()
- OEmbedTestTrait::lockHttpClientToFixtures in core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php - Configures the http_client service so that all requests are carried out relative to the URL of the fixtures directory. For example, after calling this method, a request for foobar.html will actually request http://test-site/path/to/fuxtures/foobar.html.
File
- core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php, line 28
Class
- OEmbedTestTrait
- Contains helper functions for testing oEmbed functionality in isolation.
Namespace
Drupal\Tests\media\TraitsCode
protected function getFixturesUrl() {
return $this->baseUrl . '/' . $this
->getFixturesDirectory();
}