Commit ba77d6c2 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

COrrection appel méthode inexistante.

parent 8a956b26
......@@ -18,10 +18,10 @@ class AppConnection extends \UnicaenApp\View\Helper\AppConnection
{
$connexion = array();
if (($tmp = $this->getView()->getPlugin('userCurrent'))) {
if (($tmp = $this->getView()->plugin('userCurrent'))) {
$connexion[] = "" . $tmp;
}
if (($tmp = $this->getView()->getPlugin('userConnection'))) {
if (($tmp = $this->getView()->plugin('userConnection'))) {
$connexion[] = "" . $tmp;
}
......
......@@ -25,7 +25,7 @@ class AppConnectionTest extends AbstractTest
{
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);
}
......@@ -83,7 +83,7 @@ class AppConnectionTest extends AbstractTest
{
$this->renderer
->expects($this->any())
->method('getPlugin')
->method('plugin')
->will($this->returnCallback(function ($plugin) use ($userCurrentHelper, $userConnectionHelper) {
if ('usercurrent' === strtolower($plugin)) {
return $userCurrentHelper;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment