BUG Prevent non-widget tests from loading WidgetAreaEditorTest_FakePage every query

This commit is contained in:
Damian Mooyman 2015-11-04 17:01:46 +13:00
parent c16db15e9e
commit 79db693835

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",
);
}