From fc71d1610035ae2e5f554bc4346f36c08aa8536d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 13 Apr 2010 03:27:47 +0000 Subject: [PATCH] MINOR: Updated ModelAdminTest to use extraDataObjects (from r90055) (from r96803) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102666 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/ModelAdminTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/ModelAdminTest.php b/tests/ModelAdminTest.php index d043800e..7db110eb 100644 --- a/tests/ModelAdminTest.php +++ b/tests/ModelAdminTest.php @@ -3,6 +3,11 @@ class ModelAdminTest extends FunctionalTest { static $fixture_file = 'cms/tests/ModelAdminTest.yml'; + protected $extraDataObjects = array( + 'ModelAdminTest_Admin', + 'ModelAdminTest_Contact', + ); + function testModelAdminOpens() { $this->autoFollowRedirection = false; $this->logInAs('admin'); @@ -19,7 +24,7 @@ class ModelAdminTest_Admin extends ModelAdmin implements TestOnly { ); } -class ModelAdminTest_Contact extends DataObject { +class ModelAdminTest_Contact extends DataObject implements TestOnly { static $db = array( "Name" => "Varchar", "Phone" => "Varchar",