mirror of
https://github.com/silverstripe/silverstripe-iframe
synced 2024-10-22 11:05:51 +02:00
Ensure tests don't change global state
This commit is contained in:
parent
73d0b87155
commit
abc29de25f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user