function ResourceFetcherTest::providerFetchResource
Same name in other branches
- 8.9.x core/modules/media/tests/src/Functional/ResourceFetcherTest.php \Drupal\Tests\media\Functional\ResourceFetcherTest::providerFetchResource()
- 10 core/modules/media/tests/src/Functional/ResourceFetcherTest.php \Drupal\Tests\media\Functional\ResourceFetcherTest::providerFetchResource()
- 11.x core/modules/media/tests/src/Functional/ResourceFetcherTest.php \Drupal\Tests\media\Functional\ResourceFetcherTest::providerFetchResource()
Data provider for testFetchResource().
Return value
array
File
-
core/
modules/ media/ tests/ src/ Functional/ ResourceFetcherTest.php, line 38
Class
- ResourceFetcherTest
- Tests the oEmbed resource fetcher service.
Namespace
Drupal\Tests\media\FunctionalCode
public function providerFetchResource() {
return [
'JSON resource' => [
'video_vimeo.json',
'Vimeo',
'Drupal Rap Video - Schipulcon09',
],
'XML resource' => [
'video_collegehumor.xml',
'CollegeHumor',
"Let's Not Get a Drink Sometime",
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.