Move AddonManager into Service namespace

This commit is contained in:
Art4 2025-01-03 09:23:21 +00:00
parent 1924cc61a0
commit 5647d8aef4
2 changed files with 8 additions and 6 deletions

View file

@ -1,30 +0,0 @@
<?php
// Copyright (C) 2010-2024, the Friendica project
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
//
// SPDX-License-Identifier: AGPL-3.0-or-later
declare(strict_types=1);
namespace Friendica\Test\Unit\Addon;
use Friendica\Addon\AddonManager;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
class AddonManagerTest extends TestCase
{
public function testLoadAddon(): void
{
$logger = $this->createMock(LoggerInterface::class);
$logger->expects($this->once())->method('info')->with('Addon "helloaddon" loaded.');
$manager = new AddonManager(
dirname(__DIR__, 2) . '/Util',
$logger
);
$manager->bootstrapAddons(['helloaddon' => []]);
}
}