mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 16:34:33 +02:00
Add Addon::getId() method
This commit is contained in:
parent
66fb982124
commit
1f25fe9bf5
8 changed files with 89 additions and 25 deletions
|
@ -16,7 +16,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class LegacyAddonProxyTest extends TestCase
|
||||
{
|
||||
public function testCreateWithNameAndPath(): void
|
||||
public function testCreateWithIdAndPath(): void
|
||||
{
|
||||
$root = vfsStream::setup('addons', 0777, ['helloaddon' => []]);
|
||||
|
||||
|
@ -25,6 +25,15 @@ class LegacyAddonProxyTest extends TestCase
|
|||
$this->assertInstanceOf(Addon::class, $addon);
|
||||
}
|
||||
|
||||
public function testGetIdReturnsId(): void
|
||||
{
|
||||
$root = vfsStream::setup('addons', 0777, ['helloaddon' => []]);
|
||||
|
||||
$addon = new LegacyAddonProxy('helloaddon', $root->url());
|
||||
|
||||
$this->assertSame('helloaddon', $addon->getId());
|
||||
}
|
||||
|
||||
public function testGetRequiredDependenciesReturnsEmptyArray(): void
|
||||
{
|
||||
$root = vfsStream::setup('addons', 0777, ['helloaddon' => []]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue