Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b9dfcae3
Commit
b9dfcae3
authored
Nov 06, 2013
by
alexpott
Browse files
Issue
#2127487
by chx: GetStringTranslationStub() ignores variables.
parent
5a9c4bec
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/tests/Drupal/Tests/UnitTestCase.php
View file @
b9dfcae3
...
...
@@ -177,7 +177,7 @@ public function getStringTranslationStub() {
$translation
=
$this
->
getMock
(
'Drupal\Core\StringTranslation\TranslationInterface'
);
$translation
->
expects
(
$this
->
any
())
->
method
(
'translate'
)
->
will
(
$this
->
return
Argument
(
0
));
->
will
(
$this
->
return
Callback
(
function
(
$string
,
array
$args
=
array
())
{
return
strtr
(
$string
,
$args
);
}
));
return
$translation
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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