mirror of
https://github.com/e107inc/e107.git
synced 2025-08-22 14:13:03 +02:00
Moved parseheader() to e107 class as renderLayout() Added test.
This commit is contained in:
@@ -49,6 +49,22 @@ class e107Test extends \Codeception\Test\Unit
|
||||
|
||||
}
|
||||
|
||||
public function testRenderLayout()
|
||||
{
|
||||
$LAYOUT = file_get_contents(e_THEME."bootstrap3/theme.html");
|
||||
ob_start();
|
||||
|
||||
$this->e107::renderLayout($LAYOUT);
|
||||
|
||||
$result = ob_get_clean();
|
||||
|
||||
$this->assertStringNotContainsString('{MENU=1}',$result);
|
||||
$this->assertStringNotContainsString('{NAVIGATION=main}',$result);
|
||||
$this->assertStringNotContainsString('{BOOTSTRAP_BRANDING}',$result);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
public function testInitInstall()
|
||||
{
|
||||
|
Reference in New Issue
Block a user