From 849559fb85f3aae09f9ad428d72a0af053b7c98e Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Sat, 1 May 2021 02:01:57 -0700 Subject: [PATCH] "directory does not exist" with crewlabs/unsplash @BrianHenryIE https://github.com/coenjacobs/mozart/issues/97 --- tests/Issues/MozartIssue97Test.php | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 tests/Issues/MozartIssue97Test.php diff --git a/tests/Issues/MozartIssue97Test.php b/tests/Issues/MozartIssue97Test.php new file mode 100644 index 00000000..f8e5b56a --- /dev/null +++ b/tests/Issues/MozartIssue97Test.php @@ -0,0 +1,57 @@ +testsWorkingDir . '/composer.json', $composerJsonString); + + 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); + } +}