mirror of
https://github.com/friendica/friendica
synced 2025-04-22 17:50:11 +00:00
Fixing sort of BaseURL usage for App & Cache usage
This commit is contained in:
parent
fba0574ec0
commit
a66580444f
3 changed files with 26 additions and 17 deletions
|
@ -7,6 +7,7 @@ use Friendica\Core\L10n\L10n;
|
|||
use Friendica\Test\MockedTest;
|
||||
use Friendica\Test\Util\AppMockTrait;
|
||||
use Friendica\Test\Util\VFSTrait;
|
||||
use Friendica\Util\BaseURL;
|
||||
|
||||
class BBCodeTest extends MockedTest
|
||||
{
|
||||
|
@ -44,6 +45,12 @@ class BBCodeTest extends MockedTest
|
|||
$this->dice->shouldReceive('create')
|
||||
->with(L10n::class)
|
||||
->andReturn($l10nMock);
|
||||
|
||||
$baseUrlMock = \Mockery::mock(BaseURL::class);
|
||||
$baseUrlMock->shouldReceive('get')->withAnyArgs()->andReturn('friendica.local');
|
||||
$this->dice->shouldReceive('create')
|
||||
->with(BaseURL::class)
|
||||
->andReturn($baseUrlMock);
|
||||
}
|
||||
|
||||
public function dataLinks()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue