Phue\Test\Command\DeleteRuleTest::testSend PHP Method

testSend() public method

Test: Send command
public testSend ( )
    public function testSend()
    {
        $command = new DeleteRule(5);
        // Stub transport's sendRequest usage
        $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}/rules/5"), $this->equalTo(TransportInterface::METHOD_DELETE));
        // Send command
        $command->send($this->mockClient);
    }
DeleteRuleTest