1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Tests for global LAN file detection.

This commit is contained in:
Cameron
2019-01-13 13:32:58 -08:00
parent 43bcfdee16
commit 8f73232a4d

View File

@@ -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() public function testLoad()
{ {