Pantheon\Terminus\UnitTests\Commands\Backup\GetCommandTest::testGetBackupWithInvalidFile PHP Метод

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

Tests the backup:get command with file that doesn't exist
    public function testGetBackupWithInvalidFile()
    {
        $bad_file_name = 'no-file.tar.gz';
        $this->backups->expects($this->once())->method('getBackupByFileName')->with($this->equalTo($bad_file_name))->will($this->throwException(new TerminusNotFoundException()));
        $this->setExpectedException(TerminusNotFoundException::class);
        $this->command->getBackup('mysite.dev', ['file' => $bad_file_name]);
    }