mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
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:
commit
eee39bca4e
@ -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",
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user