public function archiveDumpCase::testArchiveRestoreNoCore

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

Test archive-restore for a site archive (--no-core).

@depends testArchiveDumpNoCore

File

tests/archiveDumpTest.php, line 122

Namespace

Unish

Class

archiveDumpCase
Tests for archive-dump and archive-restore

Code

public function testArchiveRestoreNoCore($dump_dest) {
  $root = $this->webroot();
  $original_codebase = drush_dir_md5($root);
  unish_file_delete_recursive($root . '/sites/' . self::uri, TRUE);
  $options = array(
    'yes' => NULL,
    'destination' => $root,
  );
  $this->drush('archive-restore', array($dump_dest), $options);

  $restored_codebase = drush_dir_md5($root);
  $this->assertEquals($original_codebase, $restored_codebase);
}