3 // contains a test-hook call for creating a storage instance
6 use Friendica\Core\L10n;
7 use Friendica\Test\Util\SampleStorageBackend;
8 use Mockery\MockInterface;
10 function create_instance(App $a, &$data)
12 /** @var L10n|MockInterface $l10n */
13 $l10n = \Mockery::mock(L10n::class);
15 if ($data['name'] == SampleStorageBackend::getName()) {
16 $data['storage'] = new SampleStorageBackend($l10n);