private function OEmbedResourceUrlAlterEventTest::getMockProvider in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/media_event_dispatcher/tests/src/Unit/Media/OEmbedResourceUrlAlterEventTest.php \Drupal\Tests\media_event_dispatcher\Unit\Media\OEmbedResourceUrlAlterEventTest::getMockProvider()
Get a mock oEmbed provider.
Return value
\Drupal\media\OEmbed\Provider A mock Vimeo oEmbed provider.
1 call to OEmbedResourceUrlAlterEventTest::getMockProvider()
- OEmbedResourceUrlAlterEventTest::testOembedResourceParsedUrlAlter in modules/
media_event_dispatcher/ tests/ src/ Unit/ Media/ OEmbedResourceUrlAlterEventTest.php - OEmbedResourceUrlAlterEvent parsed URL alter test.
File
- modules/
media_event_dispatcher/ tests/ src/ Unit/ Media/ OEmbedResourceUrlAlterEventTest.php, line 45
Class
- OEmbedResourceUrlAlterEventTest
- Class OEmbedResourceUrlAlterEventTest.
Namespace
Drupal\Tests\media_event_dispatcher\Unit\MediaCode
private function getMockProvider() : Provider {
return new Provider('Vimeo', 'https://vimeo.com/', [
[
'url' => 'https://vimeo.com/api/oembed.json',
'schemes' => [
'https://vimeo.com/*',
],
],
]);
}