Phue\Test\Command\CreateScheduleTest::testStatus PHP Метод

testStatus() публичный Метод

Test: Set status
public testStatus ( )
    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));
    }