mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-15 06:09:58 +08:00
Tiny tweaks
This commit is contained in:
parent
f117a4f3c7
commit
e67df90978
@ -41,11 +41,6 @@ class Plugin
|
||||
return $this->getManifestAttr(Str::snake($name, '-'));
|
||||
}
|
||||
|
||||
public function __isset(string $name)
|
||||
{
|
||||
return isset($this->{$name}) || $this->getManifestAttr(Str::snake($name, '-'));
|
||||
}
|
||||
|
||||
public function getManifest()
|
||||
{
|
||||
return $this->manifest;
|
||||
|
@ -461,12 +461,12 @@ class PluginManagerTest extends TestCase
|
||||
$this->assertNull(plugin('nope'));
|
||||
$this->assertInstanceOf(Plugin::class, plugin('fake'));
|
||||
|
||||
$this->expectExceptionMessage('No such plugin.');
|
||||
plugin_assets('nope', 'relative');
|
||||
|
||||
$this->assertEquals(
|
||||
url('plugins').'/fake/assets/relative?v=1',
|
||||
plugin_assets('fake', 'relative')
|
||||
);
|
||||
|
||||
$this->expectExceptionMessage('No such plugin.');
|
||||
plugin_assets('nope', 'relative');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user