Add a missing assertion

This commit is contained in:
Pig Fang 2019-04-05 09:34:14 +08:00
parent 293668960a
commit 45aaa819b8

View File

@ -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');
}