Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
ba77d6c2
Commit
ba77d6c2
authored
Jul 09, 2013
by
Bertrand Gauthier
Browse files
COrrection appel méthode inexistante.
parent
8a956b26
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/View/Helper/AppConnection.php
View file @
ba77d6c2
...
...
@@ -18,10 +18,10 @@ class AppConnection extends \UnicaenApp\View\Helper\AppConnection
{
$connexion
=
array
();
if
((
$tmp
=
$this
->
getView
()
->
getP
lugin
(
'userCurrent'
)))
{
if
((
$tmp
=
$this
->
getView
()
->
p
lugin
(
'userCurrent'
)))
{
$connexion
[]
=
""
.
$tmp
;
}
if
((
$tmp
=
$this
->
getView
()
->
getP
lugin
(
'userConnection'
)))
{
if
((
$tmp
=
$this
->
getView
()
->
p
lugin
(
'userConnection'
)))
{
$connexion
[]
=
""
.
$tmp
;
}
...
...
tests/UnicaenAuthTest/View/Helper/AppConnectionTest.php
View file @
ba77d6c2
...
...
@@ -25,7 +25,7 @@ class AppConnectionTest extends AbstractTest
{
parent
::
setUp
();
$this
->
renderer
=
$this
->
getMock
(
'Zend\View\Renderer\PhpRenderer'
,
array
(
'
getP
lugin'
));
$this
->
renderer
=
$this
->
getMock
(
'Zend\View\Renderer\PhpRenderer'
,
array
(
'
p
lugin'
));
$this
->
helper
->
setView
(
$this
->
renderer
);
}
...
...
@@ -83,7 +83,7 @@ class AppConnectionTest extends AbstractTest
{
$this
->
renderer
->
expects
(
$this
->
any
())
->
method
(
'
getP
lugin'
)
->
method
(
'
p
lugin'
)
->
will
(
$this
->
returnCallback
(
function
(
$plugin
)
use
(
$userCurrentHelper
,
$userConnectionHelper
)
{
if
(
'usercurrent'
===
strtolower
(
$plugin
))
{
return
$userCurrentHelper
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment