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
@ -16,6 +16,12 @@ class WidgetAreaEditorTest extends SapphireTest {
|
|||||||
|
|
||||||
protected $usesDatabase = true;
|
protected $usesDatabase = true;
|
||||||
|
|
||||||
|
protected $requiredExtensions = array(
|
||||||
|
"SiteTree" => array(
|
||||||
|
"WidgetPageExtension"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
function testFillingOneArea() {
|
function testFillingOneArea() {
|
||||||
$data = array(
|
$data = array(
|
||||||
'Widget' => array(
|
'Widget' => array(
|
||||||
@ -430,7 +436,6 @@ class WidgetAreaEditorTest extends SapphireTest {
|
|||||||
|
|
||||||
class WidgetAreaEditorTest_FakePage extends Page implements TestOnly {
|
class WidgetAreaEditorTest_FakePage extends Page implements TestOnly {
|
||||||
private static $has_one = array(
|
private static $has_one = array(
|
||||||
"SideBar" => "WidgetArea",
|
|
||||||
"BottomBar" => "WidgetArea",
|
"BottomBar" => "WidgetArea",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user