protected function OEmbedTestTrait::useFixtureProviders in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::useFixtureProviders()
- 9 core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::useFixtureProviders()
Forces Media to use the provider database in the fixtures directory.
File
- core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php, line 35
Class
- OEmbedTestTrait
- Contains helper functions for testing oEmbed functionality in isolation.
Namespace
Drupal\Tests\media\TraitsCode
protected function useFixtureProviders() {
$this
->config('media.settings')
->set('oembed_providers_url', $this
->getFixturesUrl() . '/providers.json')
->save();
}