Ensure tests don't change global state

This commit is contained in:
Damian Mooyman 2014-11-19 16:07:16 +13:00
parent 73d0b87155
commit abc29de25f

View File

@ -1,6 +1,17 @@
<?php
class IFramePageTest extends SapphireTest {
public function setUp() {
parent::setUp();
Config::nest();
}
public function tearDown() {
Config::unnest();
parent::tearDown();
}
function testGetClass() {
$iframe = new IFramePage();
$iframe->AutoHeight = 1;