function UrlResolverTest::providerUrlDiscovery

Same name in other branches
  1. 9 core/modules/media/tests/src/Functional/UrlResolverTest.php \Drupal\Tests\media\Functional\UrlResolverTest::providerUrlDiscovery()
  2. 8.9.x core/modules/media/tests/src/Functional/UrlResolverTest.php \Drupal\Tests\media\Functional\UrlResolverTest::providerUrlDiscovery()
  3. 10 core/modules/media/tests/src/Functional/UrlResolverTest.php \Drupal\Tests\media\Functional\UrlResolverTest::providerUrlDiscovery()

Data provider for testUrlDiscovery().

Return value

array

See also

::testUrlDiscovery()

File

core/modules/media/tests/src/Functional/UrlResolverTest.php, line 108

Class

UrlResolverTest
Tests the oEmbed URL resolver service.

Namespace

Drupal\Tests\media\Functional

Code

public static function providerUrlDiscovery() {
    return [
        'JSON resource' => [
            'video_vimeo.html',
            'https://vimeo.com/api/oembed.json?url=video_vimeo.html',
        ],
        'XML resource' => [
            'video_dailymotion.html',
            'https://www.dailymotion.com/services/oembed?url=video_dailymotion.html',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.