Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Jan 13, 2019
1 parent 34a8977 commit f91dec1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/phpunit/DrupalInspectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class DrupalInspectorTest extends TestBase
public function testFindModules()
{
$this->sandbox = $this->sandboxManager->makeSandbox();
$modules = DrupalInspector::findContribProjects($this->sandbox . "/docroot", "modules/contrib");
$composer_json = json_decode(file_get_contents($this->sandbox . "/docroot/composer.json"));
$modules = DrupalInspector::findContribProjects($this->sandbox . "/docroot", "modules/contrib", $composer_json);
$this->assertArrayHasKey('ctools', $modules);
$this->assertContains('3.0.0', $modules);
}
Expand Down

0 comments on commit f91dec1

Please sign in to comment.