Skip to content

Commit

Permalink
Failing test for #97
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Dec 14, 2020
1 parent 832a558 commit 68bea5b
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion tests/MoverIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,39 @@ public function testLibpdfmergeSucceeds()
}


/**

/**
* Issue 97. Package named "crewlabs/unsplash" is downloaded to `vendor/crewlabs/unsplash` but their composer.json
* has the package name as "unsplash/unsplash".
*
* "The "/Users/BrianHenryIE/Sites/mozart-97/vendor/unsplash/unsplash/src" directory does not exist."
*/
public function testCrewlabsUnsplashSucceeds()
{

$composer = $this->composer;

$composer->require["crewlabs/unsplash"] = "3.1.0";

file_put_contents($this->testsWorkingDir . '/composer.json', json_encode($composer));

chdir($this->testsWorkingDir);

exec('composer install');

$inputInterfaceMock = $this->createMock(InputInterface::class);
$outputInterfaceMock = $this->createMock(OutputInterface::class);

$mozartCompose = new Compose();

$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);

$this->assertEquals(0, $result);

}


/**
* Delete $this->testsWorkingDir after each test.
*
* @see https://stackoverflow.com/questions/3349753/delete-directory-with-files-in-it
Expand Down

0 comments on commit 68bea5b

Please sign in to comment.