function ClientFactoryTest::providerTestCreateFromOptions
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php \Drupal\Tests\Core\Http\ClientFactoryTest::providerTestCreateFromOptions()
- 10 core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php \Drupal\Tests\Core\Http\ClientFactoryTest::providerTestCreateFromOptions()
- 11.x core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php \Drupal\Tests\Core\Http\ClientFactoryTest::providerTestCreateFromOptions()
Data provider for testCreateFromOptions
Return value
array
File
-
core/
tests/ Drupal/ Tests/ Core/ Http/ ClientFactoryTest.php, line 60
Class
- ClientFactoryTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Http%21ClientFactory.php/class/ClientFactory/8.9.x" title="Helper class to construct a HTTP client with Drupal specific config." class="local">\Drupal\Core\Http\ClientFactory</a> @group Http
Namespace
Drupal\Tests\Core\HttpCode
public function providerTestCreateFromOptions() {
return [
[
[],
[],
[
'verify' => TRUE,
'timeout' => 30,
],
],
[
[
'timeout' => 40,
],
[],
[
'verify' => TRUE,
'timeout' => 40,
],
],
[
[],
[
'timeout' => 50,
],
[
'verify' => TRUE,
'timeout' => 50,
],
],
[
[
'timeout' => 40,
],
[
'timeout' => 50,
],
[
'verify' => TRUE,
'timeout' => 50,
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.