You are here

protected function OEmbedTestTrait::getFixturesDirectory in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::getFixturesDirectory()
  2. 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
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.

... See full list

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\Traits

Code

protected function getFixturesDirectory() {
  return drupal_get_path('module', 'media') . '/tests/fixtures/oembed';
}