public function archiveDumpCase::testArchiveRestore

8.0.x archiveDumpTest.php public archiveDumpCase::testArchiveRestore($dump_dest)
6.x archiveDumpTest.php public archiveDumpCase::testArchiveRestore($dump_dest)
7.x archiveDumpTest.php public archiveDumpCase::testArchiveRestore($dump_dest)
5.x archiveDumpTest.php public archiveDumpCase::testArchiveRestore($dump_dest)
master archiveDumpTest.php public archiveDumpCase::testArchiveRestore($dump_dest)

Test archive-restore.

Restore the archive generated in testArchiveDump() and verify that the directory contents are identical.

@depends testArchiveDump

File

tests/archiveDumpTest.php, line 90

Namespace

Unish

Class

archiveDumpCase
Tests for archive-dump and archive-restore

Code

public function testArchiveRestore($dump_dest) {
  $restore_dest = UNISH_SANDBOX . DIRECTORY_SEPARATOR . 'restore';
  $options = array(
    'yes' => NULL,
    'destination' => $restore_dest,
  );
  $this->drush('archive-restore', array($dump_dest), $options);
  $original_codebase = drush_dir_md5($this->webroot());
  $restored_codebase = drush_dir_md5($restore_dest);
  $this->assertEquals($original_codebase, $restored_codebase);
}