]> git.mxchange.org Git - friendica.git/blob - tests/Util/SampleStorageBackendInstance.php
add missing namespaces/fix wrong class-names
[friendica.git] / tests / Util / SampleStorageBackendInstance.php
1 <?php
2
3 // contains a test-hook call for creating a storage instance
4
5 use Friendica\App;
6 use Friendica\Core\L10n;
7 use Friendica\Test\Util\SampleStorageBackend;
8 use Mockery\MockInterface;
9
10 function create_instance(App $a, &$data)
11 {
12         /** @var L10n|MockInterface $l10n */
13         $l10n = \Mockery::mock(L10n::class);
14
15         if ($data['name'] == SampleStorageBackend::getName()) {
16                 $data['storage'] = new SampleStorageBackend($l10n);
17         }
18 }