Phue\Test\GroupTest::testGetSetEffect PHP Method

testGetSetEffect() public method

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