1
0
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:
Cameron
2020-12-20 13:25:03 -08:00
parent 601df26d51
commit bdb4104f9c
6 changed files with 64 additions and 35 deletions

View File

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