/** * Test: Send command * * @covers \Phue\Command\DeleteUser::__construct * @covers \Phue\Command\DeleteUser::send */ public function testSend() { $command = new DeleteUser('atestusername'); // Stub transport's sendRequest usage $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("{$this->mockClient->getUsername()}/config/whitelist/atestusername"), $this->equalTo(TransportInterface::METHOD_DELETE)); // Send command $command->send($this->mockClient); }