You are here

public function ProviderRepositoryTest::providerNonExistingProviderDatabase in oEmbed Providers 1.1.x

Same name and namespace in other branches
  1. 2.x tests/src/Functional/ProviderRepositoryTest.php \Drupal\Tests\oembed_providers\Functional\ProviderRepositoryTest::providerNonExistingProviderDatabase()
  2. 1.0.x tests/src/Functional/ProviderRepositoryTest.php \Drupal\Tests\oembed_providers\Functional\ProviderRepositoryTest::providerNonExistingProviderDatabase()

Data provider for testEmptyProviderList().

Return value

array

See also

::testEmptyProviderList()

File

tests/src/Functional/ProviderRepositoryTest.php, line 109

Class

ProviderRepositoryTest
Tests the oEmbed provider repository.

Namespace

Drupal\Tests\oembed_providers\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',
    ],
  ];
}