function OEmbedTestTrait::getFixturesDirectory
Same name in other branches
- 9 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()
- 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 - Test 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_get_path('module', 'media') . '/tests/fixtures/oembed';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.