BUGFIX: DataObjectTest needs its extensions to use the new static-on-object method to keep the ordering as it expects

This commit is contained in:
Hamish Friedlander 2012-03-09 16:37:50 +13:00
parent 7c94caa0cc
commit bc3f5ac329

View File

@ -1098,18 +1098,15 @@ class DataObjectTest_FieldlessSubTable extends DataObjectTest_Team implements Te
class DataObjectTest_Team_Extension extends DataExtension implements TestOnly {
function extraStatics($class=null, $extension=null) {
return array(
'db' => array(
'ExtendedDatabaseField' => 'Varchar'
),
'has_one' => array(
'ExtendedHasOneRelationship' => 'DataObjectTest_Player'
)
);
}
static $db = array(
'ExtendedDatabaseField' => 'Varchar'
);
static $has_one = array(
'ExtendedHasOneRelationship' => 'DataObjectTest_Player'
);
function getExtendedDynamicField() {
return "extended dynamic field";
}