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

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