You are here

public function ClientFactoryTest::providerTestCreateFromOptions in Drupal 8

Same name and namespace in other branches
  1. 9 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 \Drupal\Core\Http\ClientFactory @group Http

Namespace

Drupal\Tests\Core\Http

Code

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,
      ],
    ],
  ];
}