You are here

public function HttpClientTest::testGetCommands in HTTP Client Manager 8.2

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

Tests HttpClient::getCommands().

@covers ::getCommands

File

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

Class

HttpClientTest
Class HttpClientTest.

Namespace

Drupal\Tests\http_client_manager\Unit

Code

public function testGetCommands() {
  $commands = $this->client
    ->getCommands();
  $this
    ->assertCount(3, $commands);
  $this
    ->assertArrayHasKey('FindPosts', $commands);
  $this
    ->assertArrayHasKey('FindComments', $commands);
}