function ProviderRepositoryTest::providerNonExistingProviderDatabase

Data provider for testEmptyProviderList().

Return value

array An array of test cases.

See also

::testEmptyProviderList()

File

core/modules/media/tests/src/Kernel/ProviderRepositoryTest.php, line 85

Class

ProviderRepositoryTest
Tests the oEmbed provider repository.

Namespace

Drupal\Tests\media\Kernel

Code

public static function providerNonExistingProviderDatabase() {
  return [
    [
      'http://oembed1.com/providers.json',
      'Could not retrieve the oEmbed provider database from http://oembed1.com/providers.json',
    ],
    [
      'http://oembed.com/providers1.json',
      'Could not retrieve the oEmbed provider database from http://oembed.com/providers1.json',
    ],
  ];
}

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