turned bootstrap template variants into logic
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user