Permalink
Browse files

BUGFIX: DataObjectTest needs its extensions to use the new static-on-…

…object method to keep the ordering as it expects
  • Loading branch information...
1 parent 7c94caa commit bc3f5ac329849266dde9d02705f3cf3100978c0d Hamish Friedlander committed Mar 9, 2012
Showing with 9 additions and 12 deletions.
  1. +9 −12 tests/model/DataObjectTest.php
@@ -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";
}

0 comments on commit bc3f5ac

Please sign in to comment.