turned bootstrap template variants into logic

This commit is contained in:
El RIDO
2017-01-08 10:02:07 +01:00
parent 87fad1fb77
commit 67f6c4eb61
9 changed files with 25 additions and 21 deletions

View File

@@ -67,6 +67,25 @@ class ViewTest extends PHPUnit_Framework_TestCase
ob_end_clean();
}
}
// check bootstrap variants
$template = 'bootstrap-page';
ob_start();
$page->draw($template);
$this->_content[$template] = ob_get_contents();
ob_end_clean();
foreach (array('-dark', '-compact') as $suffix) {
$template = 'bootstrap' . $suffix;
ob_start();
$page->draw($template);
$this->_content[$template] = ob_get_contents();
ob_end_clean();
$template .= '-page';
ob_start();
$page->draw($template);
$this->_content[$template] = ob_get_contents();
ob_end_clean();
}
}
public function tearDown()