mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-07 02:48:44 -04:00
turned bootstrap template variants into logic
This commit is contained in:
parent
87fad1fb77
commit
67f6c4eb61
9 changed files with 25 additions and 21 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue