Skip to content

Commit

Permalink
Moving test method for includes from git instead of having it on a se…
Browse files Browse the repository at this point in the history
…parate class, as pointed by @jhedstrom
  • Loading branch information
Pable Fabregat committed Dec 23, 2014
1 parent c506f3c commit 88498fe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 51 deletions.
51 changes: 0 additions & 51 deletions tests/makeIncludesGitTest.php

This file was deleted.

23 changes: 23 additions & 0 deletions tests/makeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,23 @@ function testMakeInclude() {
$this->runMakefileTest('include');
}

/**
* Test git support on includes directive
*/
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-build'), $options);

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

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

function testMakeRecursion() {
$this->runMakefileTest('recursion');
}
Expand Down Expand Up @@ -494,6 +511,12 @@ function getMakefile($key) {
'md5' => 'e2e230ec5eccaf5618050559ab11510d',
'options' => array(),
),
'includes-git' => array(
'name' => 'Including makefiles from remote repositories',
'makefile' => 'includes-main.make',
'build' => TRUE,
'options' => array(),
),
'recursion' => array(
'name' => 'Recursion',
'makefile' => 'recursion.make',
Expand Down

0 comments on commit 88498fe

Please sign in to comment.