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

testSend() public method

Test: Send command
public testSend ( )
    public function testSend()
    {
        // Build command
        $setScheduleAttributesCmd = new SetScheduleAttributes($this->mockSchedule);
        // Set expected payload
        $this->stubTransportSendRequestWithPayload((object) array('name' => 'Dummy!', 'description' => 'Dummy description', 'command' => array('method' => TransportInterface::METHOD_POST, 'address' => "/api/{$this->mockClient->getUsername()}/thing/value", 'body' => "Dummy")));
        // Change name, description
        $setScheduleAttributesCmd->name('Dummy!')->description('Dummy description')->command($this->mockCommand)->send($this->mockClient);
    }