|
@@ -77,7 +77,7 @@ class PluginInstallerTest extends \PHPUnit_Framework_TestCase
|
|
|
public function testInstallNewPlugin()
|
|
|
{
|
|
|
$this->repository
|
|
|
- ->expects($this->once())
|
|
|
+ ->expects($this->exactly(2))
|
|
|
->method('getPackages')
|
|
|
->will($this->returnValue(array()));
|
|
|
$installer = new PluginInstaller($this->io, $this->composer);
|
|
@@ -92,7 +92,7 @@ class PluginInstallerTest extends \PHPUnit_Framework_TestCase
|
|
|
public function testInstallMultiplePlugins()
|
|
|
{
|
|
|
$this->repository
|
|
|
- ->expects($this->once())
|
|
|
+ ->expects($this->exactly(2))
|
|
|
->method('getPackages')
|
|
|
->will($this->returnValue(array()));
|
|
|
$installer = new PluginInstaller($this->io, $this->composer);
|
|
@@ -110,7 +110,7 @@ class PluginInstallerTest extends \PHPUnit_Framework_TestCase
|
|
|
public function testUpgradeWithNewClassName()
|
|
|
{
|
|
|
$this->repository
|
|
|
- ->expects($this->once())
|
|
|
+ ->expects($this->exactly(3))
|
|
|
->method('getPackages')
|
|
|
->will($this->returnValue(array($this->packages[0])));
|
|
|
$this->repository
|
|
@@ -129,7 +129,7 @@ class PluginInstallerTest extends \PHPUnit_Framework_TestCase
|
|
|
public function testUpgradeWithSameClassName()
|
|
|
{
|
|
|
$this->repository
|
|
|
- ->expects($this->once())
|
|
|
+ ->expects($this->exactly(3))
|
|
|
->method('getPackages')
|
|
|
->will($this->returnValue(array($this->packages[1])));
|
|
|
$this->repository
|