From b7d1f8784841e8969340721f98168e4a138a775b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 28 Jan 2019 15:44:21 +0100 Subject: [PATCH] Fix tests --- tests/Composer/Test/ApplicationTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Composer/Test/ApplicationTest.php b/tests/Composer/Test/ApplicationTest.php index 5f491440b..8739a5004 100644 --- a/tests/Composer/Test/ApplicationTest.php +++ b/tests/Composer/Test/ApplicationTest.php @@ -31,6 +31,11 @@ class ApplicationTest extends TestCase ->with($this->equalTo('--no-plugins')) ->will($this->returnValue(true)); + $inputMock->expects($this->at($index++)) + ->method('hasParameterOption') + ->with($this->equalTo('--no-cache')) + ->will($this->returnValue(false)); + $inputMock->expects($this->at($index++)) ->method('getParameterOption') ->with($this->equalTo(array('--working-dir', '-d'))) @@ -84,6 +89,11 @@ class ApplicationTest extends TestCase ->with($this->equalTo('--no-plugins')) ->will($this->returnValue(true)); + $inputMock->expects($this->at($index++)) + ->method('hasParameterOption') + ->with($this->equalTo('--no-cache')) + ->will($this->returnValue(false)); + $inputMock->expects($this->at($index++)) ->method('getParameterOption') ->with($this->equalTo(array('--working-dir', '-d')))