You are here

public function HttpClientTest::testGetCommand in HTTP Client Manager 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/HttpClientTest.php \Drupal\Tests\http_client_manager\Unit\HttpClientTest::testGetCommand()

Tests HttpClient::getCommand().

@covers ::getCommand

@dataProvider providerTestGetCommand

Parameters

string $commandName: A Guzzle Command name.

File

tests/src/Unit/HttpClientTest.php, line 64

Class

HttpClientTest
Class HttpClientTest.

Namespace

Drupal\Tests\http_client_manager\Unit

Code

public function testGetCommand($commandName) {
  $command = $this->client
    ->getCommand($commandName);
  $this
    ->assertNotEmpty($command);
  $this
    ->assertInstanceOf('Guzzle\\Service\\Description\\Operation', $command);
}