From 45aaa819b8cedcfdb3676f436b8185f6dffdb710 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Fri, 5 Apr 2019 09:34:14 +0800 Subject: [PATCH] Add a missing assertion --- tests/ServicesTest/HookTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ServicesTest/HookTest.php b/tests/ServicesTest/HookTest.php index 83233e29..47fd9728 100644 --- a/tests/ServicesTest/HookTest.php +++ b/tests/ServicesTest/HookTest.php @@ -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'); }