Fixing issue L10n::t()

pull/6051/head
Philipp Holzer 4 years ago
parent d75cc0cb34
commit 764e1a3cb6
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
  1. 4
      tests/Util/AppMockTrait.php
  2. 2
      tests/src/Core/Console/AutomaticInstallationConsoleTest.php

@ -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…
Cancel
Save