diff --git a/tests/fieldtypes/WidgetAreaEditorTest.php b/tests/fieldtypes/WidgetAreaEditorTest.php index 25b6ed645..bd7233f59 100644 --- a/tests/fieldtypes/WidgetAreaEditorTest.php +++ b/tests/fieldtypes/WidgetAreaEditorTest.php @@ -8,6 +8,11 @@ class WidgetAreaEditorTest extends SapphireTest { * This is the widget you want to use for your unit tests. */ protected $widgetToTest = 'WidgetAreaEditorTest_TestWidget'; + + protected $extraDataObjects = array( + 'WidgetAreaEditorTest_FakePage', + 'WidgetAreaEditorTest_TestWidget', + ); function testFillingOneArea() { $oldRequest = $_REQUEST; diff --git a/tests/widgets/WidgetControllerTest.php b/tests/widgets/WidgetControllerTest.php index dfbdd9e3e..d7dac8206 100644 --- a/tests/widgets/WidgetControllerTest.php +++ b/tests/widgets/WidgetControllerTest.php @@ -5,6 +5,11 @@ */ class WidgetControllerTest extends FunctionalTest { static $fixture_file = 'sapphire/tests/widgets/WidgetControllerTest.yml'; + + protected $extraDataObjects = array( + 'WidgetControllerTestPage', + 'WidgetControllerTest_Widget', + ); function testWidgetFormRendering() { $page = $this->objFromFixture('WidgetControllerTestPage', 'page1');