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);
|
@mkdir($path = config('plugins.directory').DIRECTORY_SEPARATOR.'fake-plugin-with-i18n/lang/en', 0755, true);
|
||||||
file_put_contents("$path/locale.js", '');
|
file_put_contents("$path/locale.js", '');
|
||||||
|
|
||||||
Hook::registerPluginTransScripts('fake-plugin-with-i18n');
|
Hook::registerPluginTransScripts('fake-plugin-with-i18n', ['/']);
|
||||||
$this->get('/')
|
$this->get('/')->assertSee('fake-plugin-with-i18n/lang/en/locale.js');
|
||||||
->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');
|
File::deleteDirectory(config('plugins.directory').DIRECTORY_SEPARATOR.'fake-plugin-with-i18n');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user