Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Wagner committed Feb 27, 2018
1 parent 2555e70 commit 8ed331d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/ContaoManager/PluginTest.php
Expand Up @@ -17,6 +17,7 @@
use HeimrichHannot\ListBundle\HeimrichHannotContaoListBundle;
use HeimrichHannot\QuizBundle\ContaoManager\Plugin;
use HeimrichHannot\QuizBundle\HeimrichHannotContaoQuizBundle;
use PHPUnit\Framework\MockObject\Matcher\Invocation;

/**
* Test the plugin class
Expand Down Expand Up @@ -78,12 +79,12 @@ public function testGetExtensionConfig()
/**
* Mocks the plugin loader.
*
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedRecorder $expects
* @param array $plugins
* @param Invocation $expects
* @param array $plugins
*
* @return PluginLoader|\PHPUnit_Framework_MockObject_MockObject
*/
private function mockPluginLoader(\PHPUnit_Framework_MockObject_Matcher_InvokedRecorder $expects, array $plugins = [])
private function mockPluginLoader(Invocation $expects, array $plugins = [])
{
$pluginLoader = $this->createMock(PluginLoader::class);
$pluginLoader->expects($expects)->method('getInstancesOf')->with(PluginLoader::EXTENSION_PLUGINS)->willReturn($plugins);
Expand Down

0 comments on commit 8ed331d

Please sign in to comment.