private function archiveDumpCase::archiveDump

8.0.x archiveDumpTest.php private archiveDumpCase::archiveDump($no_core)
6.x archiveDumpTest.php private archiveDumpCase::archiveDump($no_core)
7.x archiveDumpTest.php private archiveDumpCase::archiveDump($no_core)
5.x archiveDumpTest.php private archiveDumpCase::archiveDump($no_core)
master archiveDumpTest.php private archiveDumpCase::archiveDump($no_core)

Install a site and dump it to an archive.

2 calls to archiveDumpCase::archiveDump()
archiveDumpCase::testArchiveDump in tests/archiveDumpTest.php
Test if tarball generated by archive-dump looks right.
archiveDumpCase::testArchiveDumpNoCore in tests/archiveDumpTest.php
Test if tarball generated by archive-dump with --no-core looks right.

File

tests/archiveDumpTest.php, line 19

Class

archiveDumpCase

Code

private function archiveDump($no_core) {
  $this->fetchInstallDrupal(self::uri, TRUE, UNISH_DRUPAL_MAJOR_VERSION, 'testing');
  $root = $this->webroot();
  $dump_dest = UNISH_SANDBOX . DIRECTORY_SEPARATOR . 'dump.tar.gz';
  $options = array(
    'root' => $root,
    'uri' => self::uri,
    'yes' => NULL,
    'destination' => $dump_dest,
    'overwrite' => NULL,
  );
  if ($no_core) {
    $options['no-core'] = NULL;
  }
  $this->drush('archive-dump', array(self::uri), $options);

  return $dump_dest;
}