mirror of
https://github.com/friendica/friendica
synced 2025-04-27 18:30:12 +00:00
Move L10n class from L10n subdir to Core (replacing old wrapper)
This commit is contained in:
parent
67f2066b8b
commit
2838635d64
30 changed files with 356 additions and 492 deletions
|
@ -17,7 +17,7 @@ class InstallerTest extends MockedTest
|
|||
use VFSTrait;
|
||||
|
||||
/**
|
||||
* @var \Friendica\Core\L10n\L10n|MockInterface
|
||||
* @var \Friendica\Core\L10n|MockInterface
|
||||
*/
|
||||
private $l10nMock;
|
||||
|
||||
|
@ -27,14 +27,14 @@ class InstallerTest extends MockedTest
|
|||
|
||||
$this->setUpVfsDir();
|
||||
|
||||
$this->l10nMock = \Mockery::mock(\Friendica\Core\L10n\L10n::class);
|
||||
$this->l10nMock = \Mockery::mock(\Friendica\Core\L10n::class);
|
||||
|
||||
/** @var Dice|MockInterface $dice */
|
||||
$dice = \Mockery::mock(Dice::class)->makePartial();
|
||||
$dice = $dice->addRules(include __DIR__ . '/../../../static/dependencies.config.php');
|
||||
|
||||
$dice->shouldReceive('create')
|
||||
->with(\Friendica\Core\L10n\L10n::class)
|
||||
->with(\Friendica\Core\L10n::class)
|
||||
->andReturn($this->l10nMock);
|
||||
|
||||
DI::init($dice);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace src\Core\L10n;
|
||||
|
||||
use Friendica\Core\L10n\L10n;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Test\MockedTest;
|
||||
|
||||
class L10nTest extends MockedTest
|
||||
|
|
|
@ -6,7 +6,7 @@ use Dice\Dice;
|
|||
use Friendica\Core\Config\IConfiguration;
|
||||
use Friendica\Core\Config\PreloadConfiguration;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n\L10n;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Session\ISession;
|
||||
use Friendica\Core\StorageManager;
|
||||
use Friendica\Database\Database;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue