function makeMakefileCase::testInfoYamlFileWritingGit

8.0.x makeTest.php makeMakefileCase::testInfoYamlFileWritingGit()
7.x makeTest.php makeMakefileCase::testInfoYamlFileWritingGit()
master makeTest.php makeMakefileCase::testInfoYamlFileWritingGit()

Test .info file writing and the use of a git reference cache for git downloads.

File

tests/makeTest.php, line 346

Namespace

Unish

Class

makeMakefileCase
Make makefile tests. @group make @group slow

Code

function testInfoYamlFileWritingGit() {
  // Use the Drupal 8 .make file.
  $config = $this->getMakefile('git-simple-8');

  $options = array('no-core' => NULL);
  $makefile = $this->makefile_path . DIRECTORY_SEPARATOR . $config['makefile'];
  $this->drush('make', array($makefile, UNISH_SANDBOX . '/test-build'), $options);

  $this->assertFileExists(UNISH_SANDBOX . '/test-build/modules/honeypot/honeypot.info.yml');
  $contents = file_get_contents(UNISH_SANDBOX . '/test-build/modules/honeypot/honeypot.info.yml');
  $this->assertContains('# Information added by drush on 2015-09-03', $contents);
  $this->assertContains("version: '8.x-1.x-dev'", $contents);
  $this->assertContains("project: 'honeypot'", $contents);
}