Pantheon\Terminus\UnitTests\Commands\Backup\Automatic\EnableCommandTest::testSetAutomaticSchedule PHP Method

testSetAutomaticSchedule() public method

Tests the backup:automatic:enable command
    public function testSetAutomaticSchedule()
    {
        $this->environment->id = 'some_env';
        $schedule_info = ['day' => 'Caturday'];
        $this->backups->expects($this->once())->method('setBackupSchedule')->with($this->equalTo($schedule_info))->willReturn($this->workflow);
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo('Backup schedule successfully set.'));
        $out = $this->command->enableSchedule('mysite.some_env', $schedule_info);
        $this->assertNull($out);
    }