function OEmbedTestTrait::getFixturesDirectory
Same name in other branches
- 9 core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::getFixturesDirectory()
- 8.9.x core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::getFixturesDirectory()
- 11.x 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 oEmbed provider endpoints use the test resource route.
File
-
core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php, line 21
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';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.