mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Making sure RequirementsTest? has combine_files activated (merged from branches/2.3-nzct)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@82055 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
53d4925ac0
commit
f512347e33
@ -10,15 +10,19 @@ class RequirementsTest extends SapphireTest {
|
||||
|
||||
static $html_template = '<html><head></head><body></body></html>';
|
||||
|
||||
function testCustomCSS() {
|
||||
Requirements::customCSS(".testclass {color:#f00;}");
|
||||
protected $orig = array();
|
||||
|
||||
$html = Requirements::includeInHTML(false, self::$html_template);
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
|
||||
$this->assertTrue(
|
||||
(strpos($html, '.testclass {color:#f00;}') !== false),
|
||||
'customCSS() shows up in template'
|
||||
);
|
||||
$this->orig['SetCombineFiles'] = Requirements::get_combined_files_enabled();
|
||||
Requirements::set_combined_files_enabled(true);
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
parent::tearDown();
|
||||
|
||||
Requirements::set_combined_files_enabled($this->orig['SetCombineFiles']);
|
||||
}
|
||||
|
||||
function testExternalUrls() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user