public function testSetStatus()
{
// Stub client's sendCommand method
$this->mockClient->expects($this->once())->method('sendCommand')->with($this->isInstanceOf('\\Phue\\Command\\SetScheduleAttributes'))->will($this->returnValue($this->schedule));
// Ensure setStatus returns self
$this->assertEquals($this->schedule, $this->schedule->setStatus(Schedule::STATUS_ENABLED));
// Ensure new status can be retrieved by getStatus
$this->assertEquals(Schedule::STATUS_ENABLED, $this->schedule->getStatus());
}