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
This commit is contained in:
Ingo Schommer 2010-04-12 03:27:51 +00:00
parent 723106899f
commit 8d2d4bca68
2 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,11 @@ class WidgetAreaEditorTest extends SapphireTest {
*/
protected $widgetToTest = 'WidgetAreaEditorTest_TestWidget';
protected $extraDataObjects = array(
'WidgetAreaEditorTest_FakePage',
'WidgetAreaEditorTest_TestWidget',
);
protected $usesDatabase = true;
function testFillingOneArea() {

View File

@ -6,6 +6,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');
$page->publish('Stage', 'Live');