Merge pull request #7465 from nupplaphil/task/dice_cache_lock

Refactor Cache/Lock to DICE
This commit is contained in:
Hypolite Petovan 2019-08-06 07:05:07 -04:00 committed by GitHub
commit 6b7dfd0c71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 1150 additions and 881 deletions

View file

@ -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()