From 8f73232a4d0c6b70f5778bd66883ea5f67d93085 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 13 Jan 2019 13:32:58 -0800 Subject: [PATCH] Tests for global LAN file detection. --- tests/unit/e_pluginTest.php | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/tests/unit/e_pluginTest.php b/tests/unit/e_pluginTest.php index 771ce7102..e3ba79a98 100644 --- a/tests/unit/e_pluginTest.php +++ b/tests/unit/e_pluginTest.php @@ -237,11 +237,33 @@ } - public function testGetMeta() - { + + +*/ + + /** + * Test check for global lan file. + */ + public function testHasLanGlobal() + { + $result = $this->ep->clearCache()->load('chatbox_menu')->hasLanGlobal(); + + $this->assertEquals('chatbox_menu', $result); + + $result = $this->ep->clearCache()->load('alt_auth')->hasLanGlobal(); + + $this->assertFalse($result); } + public function testGetMeta() + { + $result = $this->ep->clearCache()->load('news')->getMeta(); + + $this->assertEquals('news', $result['folder']); + $this->assertEquals('menu', $result['category']); + } +/* public function testLoad() {