mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR: Updated ModelAdminTest to use extraDataObjects (from r90055)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96803 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4ba5e78b28
commit
4567f66a0a
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user