diff --git a/tests/Composer/Test/Repository/FilesystemRepositoryTest.php b/tests/Composer/Test/Repository/FilesystemRepositoryTest.php index 24e092b37..e0df7fe5d 100644 --- a/tests/Composer/Test/Repository/FilesystemRepositoryTest.php +++ b/tests/Composer/Test/Repository/FilesystemRepositoryTest.php @@ -29,6 +29,10 @@ class FilesystemRepositoryTest extends \PHPUnit_Framework_TestCase ->will($this->returnValue(array( array('name' => 'package1', 'version' => '1.0.0-beta', 'type' => 'vendor') ))); + $json + ->expects($this->once()) + ->method('exists') + ->will($this->returnValue(true)); $packages = $repository->getPackages(); @@ -48,6 +52,10 @@ class FilesystemRepositoryTest extends \PHPUnit_Framework_TestCase ->expects($this->once()) ->method('read') ->will($this->returnValue(array())); + $json + ->expects($this->once()) + ->method('exists') + ->will($this->returnValue(true)); $json ->expects($this->once()) ->method('write')