You are here

public function ProviderRepositoryTest::providerNonExistingProviderDatabase in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/tests/src/Functional/ProviderRepositoryTest.php \Drupal\Tests\media\Functional\ProviderRepositoryTest::providerNonExistingProviderDatabase()

Data provider for testEmptyProviderList().

Return value

array

See also

::testEmptyProviderList()

File

core/modules/media/tests/src/Functional/ProviderRepositoryTest.php, line 84

Class

ProviderRepositoryTest
Tests the oEmbed provider repository.

Namespace

Drupal\Tests\media\Functional

Code

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