Phue\Test\GroupTest::testGetSetXY PHP Method

testGetSetXY() public method

Test: Get/Set XY
public testGetSetXY ( )
    public function testGetSetXY()
    {
        $this->stubMockClientSendSetGroupStateCommand();
        // Make sure original xy is retrievable
        $this->assertEquals(array('x' => $this->attributes->action->xy[0], 'y' => $this->attributes->action->xy[1]), $this->group->getXY());
        // Ensure setXY returns self
        $this->assertEquals($this->group, $this->group->setXY(0.1, 0.2));
        // Make sure group attributes are updated
        $this->assertEquals(array('x' => 0.1, 'y' => 0.2), $this->group->getXY());
    }