From f267a5568eb9577daa17d7766134cec541443fa4 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 3 Feb 2014 22:00:07 +0100 Subject: [PATCH] Fix latest merge --- .../Tests/Phrasea/Command/Plugin/RemovePluginTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/Alchemy/Tests/Phrasea/Command/Plugin/RemovePluginTest.php b/tests/Alchemy/Tests/Phrasea/Command/Plugin/RemovePluginTest.php index ccc6e5f638..e9ad2541dd 100644 --- a/tests/Alchemy/Tests/Phrasea/Command/Plugin/RemovePluginTest.php +++ b/tests/Alchemy/Tests/Phrasea/Command/Plugin/RemovePluginTest.php @@ -76,6 +76,15 @@ class RemovePluginTest extends PluginCommandTestCase $command = new RemovePlugin(); $command->setContainer(self::$DI['cli']); + self::$DI['cli']['plugins.manager'] = $this->getMockBuilder('Alchemy\Phrasea\Plugin\PluginManager') + ->disableOriginalConstructor() + ->getMock(); + + self::$DI['cli']['plugins.manager']->expects($this->once()) + ->method('hasPlugin') + ->with('test-plugin') + ->will($this->returnValue(true)); + $data = $this->addPluginData(); self::$DI['cli']['filesystem'] = $this->createFilesystemMock();