mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-11 00:34:26 +02:00
Let AddonFactory implement AddonLoader
This commit is contained in:
parent
1067b2a23a
commit
247e9c5fba
2 changed files with 32 additions and 0 deletions
|
@ -11,11 +11,22 @@ namespace Friendica\Test\Unit\Service\Addon;
|
|||
|
||||
use Friendica\Service\Addon\Addon;
|
||||
use Friendica\Service\Addon\AddonFactory;
|
||||
use Friendica\Service\Addon\AddonLoader;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class AddonFactoryTest extends TestCase
|
||||
{
|
||||
public function testAddonFactoryImplementsAddonLoaderInterface(): void
|
||||
{
|
||||
$factory = new AddonFactory(
|
||||
dirname(__DIR__, 3) . '/Util',
|
||||
$this->createMock(LoggerInterface::class)
|
||||
);
|
||||
|
||||
$this->assertInstanceOf(AddonLoader::class, $factory);
|
||||
}
|
||||
|
||||
public function testLoadAddonsLoadsTheAddon(): void
|
||||
{
|
||||
$logger = $this->createMock(LoggerInterface::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue