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

View File

@ -16,6 +16,12 @@ class WidgetAreaEditorTest extends SapphireTest {
protected $usesDatabase = true;
protected $requiredExtensions = array(
"SiteTree" => array(
"WidgetPageExtension"
)
);
function testFillingOneArea() {
$data = array(
'Widget' => 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",
);
}