function ProviderRepositoryTest::providerNonExistingProviderDatabase

Same name in other branches
  1. 8.9.x core/modules/media/tests/src/Functional/ProviderRepositoryTest.php \Drupal\Tests\media\Functional\ProviderRepositoryTest::providerNonExistingProviderDatabase()
  2. 10 core/modules/media/tests/src/Functional/ProviderRepositoryTest.php \Drupal\Tests\media\Functional\ProviderRepositoryTest::providerNonExistingProviderDatabase()
  3. 11.x 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()
  5. 11.x core/modules/media/tests/src/Kernel/ProviderRepositoryTest.php \Drupal\Tests\media\Kernel\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',
        ],
    ];
}

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