Phue\Test\LightTest::testGetSetEffect PHP Method

testGetSetEffect() public method

Test: Get/Set effect
public testGetSetEffect ( )
    public function testGetSetEffect()
    {
        $this->stubMockClientSendSetLightStateCommand();
        // Make sure original effect is retrievable
        $this->assertEquals($this->attributes->state->effect, $this->light->getEffect());
        // Ensure setEffect returns self
        $this->assertEquals($this->light, $this->light->setEffect('colorloop'));
        // Make sure light attributes are updated
        $this->assertEquals('colorloop', $this->light->getEffect());
    }