You are here

public function ResourceFetcherTest::providerFetchResource in Drupal 8

Same name and namespace in other branches
  1. 9 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\Functional

Code

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",
    ],
  ];
}