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:
@@ -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()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user