Esempio n. 1
0
 public function testCommandsUsesOperation()
 {
     $api = $this->getOperation();
     $command = new MockCommand(array(), $api);
     $this->assertSame($api, $command->getOperation());
     $command->setClient($this->getClient())->prepare();
     $this->assertEquals('123', $command->get('test'));
     $this->assertSame($api, $command->getOperation($api));
 }