public function HttpClientTest::testGetCommandWhichDoesNotExists in HTTP Client Manager 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/HttpClientTest.php \Drupal\Tests\http_client_manager\Unit\HttpClientTest::testGetCommandWhichDoesNotExists()
Tests HttpClient::getCommand() with wrong argument.
@covers ::getCommand
@expectedException \Guzzle\Common\Exception\InvalidArgumentException @expectedExceptionMessage Command was not found matching Missing
File
- tests/
src/ Unit/ HttpClientTest.php, line 78
Class
- HttpClientTest
- Class HttpClientTest.
Namespace
Drupal\Tests\http_client_manager\UnitCode
public function testGetCommandWhichDoesNotExists() {
$command = $this->client
->getCommand('Missing');
$this
->assertEmpty($command);
}