/** * Test: Set status * * @covers \Phue\Command\CreateSchedule::status */ public function testStatus() { $x = new CreateSchedule(); $command = $x->status(Schedule::STATUS_ENABLED); // Ensure property is set properly $this->assertAttributeContains(Schedule::STATUS_ENABLED, 'attributes', $command); // Ensure self object is returned $this->assertEquals($command, $command->status(Schedule::STATUS_ENABLED)); }