function makeMakefileCase::testMakeOptionsArray

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

Test no-core and working-copy in options array.

File

tests/makeTest.php, line 537

Namespace

Unish

Class

makeMakefileCase
Make makefile tests. @group make @group slow

Code

function testMakeOptionsArray() {
  // Use the goptions-array.make file.
  $config = $this->getMakefile('options-array');

  $makefile_path = dirname(__FILE__) . '/makefiles';
  $makefile = $makefile_path . '/' . $config['makefile'];
  $install_directory = UNISH_SANDBOX . '/options-array';
  $this->drush('make', array($makefile, $install_directory));

  // Test cck_signup .git/HEAD file.
  $this->assertFileExists($install_directory . '/sites/all/modules/cck_signup/.git/HEAD');
  $contents = file_get_contents($install_directory . '/sites/all/modules/cck_signup/.git/HEAD');
  $this->assertContains('2fe932c', $contents);

  // Test context_admin .git/HEAD file.
  $this->assertFileExists($install_directory . '/sites/all/modules/context_admin/.git/HEAD');
  $contents = file_get_contents($install_directory . '/sites/all/modules/context_admin/.git/HEAD');
  $this->assertContains('eb9f05e', $contents);
}