Merge pull request #95 from tractorcow/pulls/fix-tests

BUG Prevent non-widget tests from loading WidgetAreaEditorTest_FakePage every query
This commit is contained in:
Christopher Pitt 2015-11-05 10:14:23 +13:00
commit eee39bca4e
1 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,12 @@ class WidgetAreaEditorTest extends SapphireTest {
);
protected $usesDatabase = true;
protected $requiredExtensions = array(
"SiteTree" => array(
"WidgetPageExtension"
)
);
function testFillingOneArea() {
$data = array(
@ -430,7 +436,6 @@ class WidgetAreaEditorTest extends SapphireTest {
class WidgetAreaEditorTest_FakePage extends Page implements TestOnly {
private static $has_one = array(
"SideBar" => "WidgetArea",
"BottomBar" => "WidgetArea",
);
}