Test enhancements

This commit is contained in:
Philipp Holzer 2018-11-01 13:44:47 +01:00
parent 70f9d3c596
commit 83ead5ec48
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
12 changed files with 154 additions and 71 deletions

View file

@ -27,11 +27,6 @@ trait AppMockTrait
*/
public function mockApp($root)
{
// simply returning the input when using L10n::t()
$l10nMock = \Mockery::mock('alias:Friendica\Core\L10n');
$l10nMock->shouldReceive('t')
->andReturnUsing(function ($arg) { return $arg; });
$this->mockConfigGet('system', 'theme', 'testtheme');
// Mocking App and most used functions