From 8d2d4bca6859f634582f23d7c80a38917be970e0 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 12 Apr 2010 03:27:51 +0000 Subject: [PATCH] MINOR: Added explicit listing of testonly dataobjects for widget tests. (from r96830) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102409 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/fieldtypes/WidgetAreaEditorTest.php | 5 +++++ tests/widgets/WidgetControllerTest.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tests/fieldtypes/WidgetAreaEditorTest.php b/tests/fieldtypes/WidgetAreaEditorTest.php index 503aa7537..8b1bdad9a 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', + ); protected $usesDatabase = true; 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');