function ProviderRepositoryTest::providerInvalidResponse
Same name in other branches
- 10 core/modules/media/tests/src/Unit/ProviderRepositoryTest.php \Drupal\Tests\media\Unit\ProviderRepositoryTest::providerInvalidResponse()
- 11.x 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\UnitCode
public 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.