mirror of
https://github.com/friendica/friendica
synced 2024-12-29 00:42:25 +00:00
21 lines
512 B
PHP
21 lines
512 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
use Friendica\App;
|
|
use Friendica\Core\L10n;
|
|
use Friendica\Test\Util\SampleStorageBackend;
|
|
use Mockery\MockInterface;
|
|
|
|
function create_instance(&$data)
|
|
{
|
|
/** @var L10n|MockInterface $l10n */
|
|
$l10n = \Mockery::mock(L10n::class);
|
|
|
|
if ($data['name'] == SampleStorageBackend::getName()) {
|
|
$data['storage'] = new SampleStorageBackend($l10n);
|
|
}
|
|
}
|