Phue\Test\BridgeTest::testSetLinkButtonOn PHP Method

testSetLinkButtonOn() public method

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