Phue\Test\BridgeTest::testSetTimezone PHP Method

testSetTimezone() public method

Test: Setting timezone
public testSetTimezone ( )
    public function testSetTimezone()
    {
        // Expect client's sendCommand usage
        $this->mockClient->expects($this->once())->method('sendCommand')->with($this->isInstanceOf('\\Phue\\Command\\SetBridgeConfig'))->will($this->returnValue($this->bridge));
        // Ensure setTimezone returns self
        $this->assertEquals($this->bridge, $this->bridge->setTimezone('Antarctica'));
        // Ensure new value can be retrieved by getTimezone
        $this->assertEquals('Antarctica', $this->bridge->getTimezone());
    }