function makeMakefileCase::testMakeMoveBuild

8.0.x makeTest.php makeMakefileCase::testMakeMoveBuild()
6.x makeTest.php makeMakefileCase::testMakeMoveBuild()
7.x makeTest.php makeMakefileCase::testMakeMoveBuild()
5.x makeTest.php makeMakefileCase::testMakeMoveBuild()
master makeTest.php makeMakefileCase::testMakeMoveBuild()

Test that make_move_build() doesn't wipe out directories that it shouldn't.

File

tests/makeTest.php, line 508

Namespace

Unish

Class

makeMakefileCase
Make makefile tests. @group make @group slow

Code

function testMakeMoveBuild() {
  // Manually download a module.
  $options = array(
    'default-major' => 6, // The makefile used below is core = "6.x".
    'destination' => UNISH_SANDBOX . '/sites/all/modules/contrib',
    'yes' => NULL,
    'dev' => NULL,
  );
  $this->drush('pm-download', array('cck_signup'), $options);

  // Build a make file.
  $config = $this->getMakefile('contrib-destination');
  $makefile = $this->makefile_path . DIRECTORY_SEPARATOR . $config['makefile'];
  $this->drush('make', array($makefile, '.'), $config['options']);

  // Verify that the manually downloaded module still exists.
  $this->assertFileExists(UNISH_SANDBOX . '/sites/all/modules/contrib/cck_signup/README.txt');
}