Pantheon\Terminus\UnitTests\Commands\Backup\Automatic\InfoCommandTest::testAutomaticBackupScheduleNotSet PHP Method

testAutomaticBackupScheduleNotSet() public method

Tests the backup:automatic:info command when the schedule is not set
    public function testAutomaticBackupScheduleNotSet()
    {
        $this->environment->id = 'scheduled';
        $schedule_info = ['daily_backup_hour' => null, 'weekly_backup_day' => null];
        $this->backups->expects($this->once())->method('getBackupSchedule')->with()->willReturn($schedule_info);
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo('Backups are not currently scheduled to be run.'));
        $out = $this->command->getSchedule('mysite.scheduled');
        $this->assertInstanceOf(PropertyList::class, $out);
        $this->assertEquals($out->getArrayCopy(), $schedule_info);
    }