function makeMakefileCase::testMakeIncludesGit

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

Test git support on includes directive.

File

tests/makeTest.php, line 472

Namespace

Unish

Class

makeMakefileCase
Make makefile tests. @group make @group slow

Code

function testMakeIncludesGit() {
  $config = $this->getMakefile('includes-git');
  $options = array();
  $makefile = $this->makefile_path . DIRECTORY_SEPARATOR . $config['makefile'];
  $this->drush('make', array($makefile, UNISH_SANDBOX . '/test-git-includes'), $options);

  // Verify that core and example main module were downloaded.
  $this->assertFileExists(UNISH_SANDBOX . '/test-git-includes/README.txt');
  $this->assertFileExists(UNISH_SANDBOX . '/test-git-includes/sites/all/modules/contrib/apachesolr/README.txt');

  // Verify that module included in sub platform was downloaded.
  $this->assertFileExists(UNISH_SANDBOX . '/test-git-includes/sites/all/modules/contrib/jquery_update/README.txt');
}