Phue\Test\GroupTest::testGetSetHue PHP Method

testGetSetHue() public method

Test: Get/Set hue
public testGetSetHue ( )
    public function testGetSetHue()
    {
        $this->stubMockClientSendSetGroupStateCommand();
        // Make sure original hue is retrievable
        $this->assertEquals($this->attributes->action->hue, $this->group->getHue());
        // Ensure setHue returns self
        $this->assertEquals($this->group, $this->group->setHue(30000));
        // Make sure group attributes are updated
        $this->assertEquals(30000, $this->group->getHue());
    }