mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Test enhancements
This commit is contained in:
parent
70f9d3c596
commit
83ead5ec48
12 changed files with 154 additions and 71 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue