2020-01-08 21:51:37 +00:00
|
|
|
<?php
|
2024-08-24 12:31:41 +00:00
|
|
|
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-01-08 21:51:37 +00:00
|
|
|
|
|
|
|
use Friendica\App;
|
2020-01-18 19:59:39 +00:00
|
|
|
use Friendica\Core\L10n;
|
2020-01-08 21:51:37 +00:00
|
|
|
use Friendica\Test\Util\SampleStorageBackend;
|
|
|
|
use Mockery\MockInterface;
|
|
|
|
|
2023-01-14 14:46:49 +00:00
|
|
|
function create_instance(&$data)
|
2020-01-08 21:51:37 +00:00
|
|
|
{
|
|
|
|
/** @var L10n|MockInterface $l10n */
|
|
|
|
$l10n = \Mockery::mock(L10n::class);
|
|
|
|
|
|
|
|
if ($data['name'] == SampleStorageBackend::getName()) {
|
|
|
|
$data['storage'] = new SampleStorageBackend($l10n);
|
|
|
|
}
|
|
|
|
}
|