Permalink
Browse files

Add test verifying that the service description has been loaded

  • Loading branch information...
1 parent 0dbdd2e commit 2faf29ce95d25c9d45044282ea5d29302bbba693 @hnrysmth hnrysmth committed Jan 26, 2014
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/BaseKit/Api/ClientTest.php
@@ -2,6 +2,7 @@
namespace BaseKitTests\Api;
use BaseKit\Api;
+use Guzzle\Service\Command\OperationCommand;
use PHPUnit_Framework_TestCase;
class ClientTest extends PHPUnit_Framework_TestCase
@@ -21,5 +22,16 @@ public function factory()
)
);
$this->assertTrue($client instanceof Api\Client);
+ return $client;
+ }
+
+ /**
+ * @test
+ * @depends factory
+ */
+ public function loadsServiceDescription($client)
+ {
+ $command = $client->getCommand('GetBrands');
+ $this->assertTrue($command instanceof OperationCommand);
}
}

0 comments on commit 2faf29c

Please sign in to comment.