mirror of
https://github.com/e107inc/e107.git
synced 2025-03-28 08:12:42 +01:00
Tests for global LAN file detection.
This commit is contained in:
parent
43bcfdee16
commit
8f73232a4d
@ -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()
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user