function ProviderRepositoryTest::providerNonExistingProviderDatabase

Same name in this branch
  1. 11.x core/modules/media/tests/src/Functional/ProviderRepositoryTest.php \Drupal\Tests\media\Functional\ProviderRepositoryTest::providerNonExistingProviderDatabase()
Same name and namespace in other branches
  1. 9 core/modules/media/tests/src/Functional/ProviderRepositoryTest.php \Drupal\Tests\media\Functional\ProviderRepositoryTest::providerNonExistingProviderDatabase()
  2. 8.9.x core/modules/media/tests/src/Functional/ProviderRepositoryTest.php \Drupal\Tests\media\Functional\ProviderRepositoryTest::providerNonExistingProviderDatabase()
  3. 10 core/modules/media/tests/src/Functional/ProviderRepositoryTest.php \Drupal\Tests\media\Functional\ProviderRepositoryTest::providerNonExistingProviderDatabase()
  4. 10 core/modules/media/tests/src/Kernel/ProviderRepositoryTest.php \Drupal\Tests\media\Kernel\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 83

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.