function ProviderRepositoryTest::providerInvalidResponse

Same name in other branches
  1. 9 core/modules/media/tests/src/Unit/ProviderRepositoryTest.php \Drupal\Tests\media\Unit\ProviderRepositoryTest::providerInvalidResponse()
  2. 10 core/modules/media/tests/src/Unit/ProviderRepositoryTest.php \Drupal\Tests\media\Unit\ProviderRepositoryTest::providerInvalidResponse()

Data provider for ::testInvalidResponse().

Return value

array[] Sets of arguments to pass to the test method.

File

core/modules/media/tests/src/Unit/ProviderRepositoryTest.php, line 167

Class

ProviderRepositoryTest
@coversDefaultClass \Drupal\media\OEmbed\ProviderRepository

Namespace

Drupal\Tests\media\Unit

Code

public static function providerInvalidResponse() : array {
    return [
        'expired' => [
            -86400,
        ],
        'fresh' => [
            86400,
        ],
    ];
}

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