Fixing issue L10n::t()

This commit is contained in:
Philipp Holzer 2018-10-31 12:37:01 +01:00
parent d75cc0cb34
commit 764e1a3cb6
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
2 changed files with 3 additions and 3 deletions

View File

@ -27,10 +27,10 @@ trait AppMockTrait
*/ */
public function mockApp($root) 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 = \Mockery::mock('alias:Friendica\Core\L10n');
$l10nMock->shouldReceive('t') $l10nMock->shouldReceive('t')
->andReturn(''); ->andReturnUsing(function ($arg) { return $arg; });
$this->mockConfigGet('system', 'theme', 'testtheme'); $this->mockConfigGet('system', 'theme', 'testtheme');

View File

@ -168,7 +168,7 @@ Creating config file...
Checking database... Checking database...
[Error] -------- [Error] --------
: Could not connect to database.:
FIN; FIN;