Phue\Test\Command\SetSceneLightStateTest::testSend PHP Метод

testSend() публичный Метод

Test: Send command
public testSend ( )
    public function testSend()
    {
        // Build command
        $setSceneLightStateCmd = new SetSceneLightState($this->mockScene, $this->mockLight);
        // Set expected payload
        $this->stubTransportSendRequestWithPayload((object) array('ct' => '300'));
        // Change color temp and set state
        $setSceneLightStateCmd->colorTemp(300)->send($this->mockClient);
    }