mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-15 06:09:58 +08:00
Add a missing assertion
This commit is contained in:
parent
293668960a
commit
45aaa819b8
@ -50,9 +50,9 @@ class HookTest extends TestCase
|
||||
@mkdir($path = config('plugins.directory').DIRECTORY_SEPARATOR.'fake-plugin-with-i18n/lang/en', 0755, true);
|
||||
file_put_contents("$path/locale.js", '');
|
||||
|
||||
Hook::registerPluginTransScripts('fake-plugin-with-i18n');
|
||||
$this->get('/')
|
||||
->assertSee('fake-plugin-with-i18n/lang/en/locale.js');
|
||||
Hook::registerPluginTransScripts('fake-plugin-with-i18n', ['/']);
|
||||
$this->get('/')->assertSee('fake-plugin-with-i18n/lang/en/locale.js');
|
||||
$this->get('/skinlib')->assertDontSee('fake-plugin-with-i18n/lang/en/locale.js');
|
||||
|
||||
File::deleteDirectory(config('plugins.directory').DIRECTORY_SEPARATOR.'fake-plugin-with-i18n');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user