Skip to content
Snippets Groups Projects
Commit ba77d6c2 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

COrrection appel méthode inexistante.

parent 8a956b26
No related branches found
No related tags found
No related merge requests found
...@@ -18,10 +18,10 @@ class AppConnection extends \UnicaenApp\View\Helper\AppConnection ...@@ -18,10 +18,10 @@ class AppConnection extends \UnicaenApp\View\Helper\AppConnection
{ {
$connexion = array(); $connexion = array();
if (($tmp = $this->getView()->getPlugin('userCurrent'))) { if (($tmp = $this->getView()->plugin('userCurrent'))) {
$connexion[] = "" . $tmp; $connexion[] = "" . $tmp;
} }
if (($tmp = $this->getView()->getPlugin('userConnection'))) { if (($tmp = $this->getView()->plugin('userConnection'))) {
$connexion[] = "" . $tmp; $connexion[] = "" . $tmp;
} }
......
...@@ -25,7 +25,7 @@ class AppConnectionTest extends AbstractTest ...@@ -25,7 +25,7 @@ class AppConnectionTest extends AbstractTest
{ {
parent::setUp(); parent::setUp();
$this->renderer = $this->getMock('Zend\View\Renderer\PhpRenderer', array('getPlugin')); $this->renderer = $this->getMock('Zend\View\Renderer\PhpRenderer', array('plugin'));
$this->helper->setView($this->renderer); $this->helper->setView($this->renderer);
} }
...@@ -83,7 +83,7 @@ class AppConnectionTest extends AbstractTest ...@@ -83,7 +83,7 @@ class AppConnectionTest extends AbstractTest
{ {
$this->renderer $this->renderer
->expects($this->any()) ->expects($this->any())
->method('getPlugin') ->method('plugin')
->will($this->returnCallback(function ($plugin) use ($userCurrentHelper, $userConnectionHelper) { ->will($this->returnCallback(function ($plugin) use ($userCurrentHelper, $userConnectionHelper) {
if ('usercurrent' === strtolower($plugin)) { if ('usercurrent' === strtolower($plugin)) {
return $userCurrentHelper; return $userCurrentHelper;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment