protected function OEmbedTestTrait::getFixturesDirectory in Drupal 9
Same name and namespace in other branches
- 8 core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::getFixturesDirectory()
- 10 core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::getFixturesDirectory()
Returns the relative path to the oEmbed fixtures directory.
Return value
string
7 calls to OEmbedTestTrait::getFixturesDirectory()
- MediaSourceOEmbedVideoTest::testMediaOEmbedVideoSource in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaSourceOEmbedVideoTest.php - Tests the oembed media source.
- MediaStandardProfileTest::remoteVideoTest in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaStandardProfileTest.php - Tests the standard profile configuration for media type 'remote_video'.
- OEmbedFormatterTest::testRender in core/
modules/ media/ tests/ src/ Functional/ FieldFormatter/ OEmbedFormatterTest.php - Tests the oEmbed field formatter.
- OEmbedTestTrait::getFixturesUrl in core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php - Returns the absolute URL of the oEmbed fixtures directory.
- OEmbedTestTrait::hijackProviderEndpoints in core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php - Ensures that all oEmbed provider endpoints defined in the fixture providers.json will use the media_test_oembed.resource.get route as their URL.
File
- core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php, line 19
Class
- OEmbedTestTrait
- Contains helper functions for testing oEmbed functionality in isolation.
Namespace
Drupal\Tests\media\TraitsCode
protected function getFixturesDirectory() {
return \Drupal::service('extension.list.module')
->getPath('media') . '/tests/fixtures/oembed';
}