Fixing issue L10n::t()
This commit is contained in:
parent
d75cc0cb34
commit
764e1a3cb6
2 changed files with 3 additions and 3 deletions
|
@ -27,10 +27,10 @@ trait AppMockTrait
|
|||
*/
|
||||
public function mockApp($root)
|
||||
{
|
||||
/// @todo This mock is ugly. We return an empty string for each translation - no workaround yet
|
||||
// simply returning the input when using L10n::t()
|
||||
$l10nMock = \Mockery::mock('alias:Friendica\Core\L10n');
|
||||
$l10nMock->shouldReceive('t')
|
||||
->andReturn('');
|
||||
->andReturnUsing(function ($arg) { return $arg; });
|
||||
|
||||
$this->mockConfigGet('system', 'theme', 'testtheme');
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ Creating config file...
|
|||
Checking database...
|
||||
|
||||
[Error] --------
|
||||
:
|
||||
Could not connect to database.:
|
||||
|
||||
|
||||
FIN;
|
||||
|
|
Loading…
Reference in a new issue