Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed extraStatics usage

  • Loading branch information...
commit 2f0a629df13983243b6bf61f56efed14eab978af 1 parent 3c5ed2e
@chillu chillu authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 tests/unit/TranslatableTest.php
View
11 tests/unit/TranslatableTest.php
@@ -990,13 +990,10 @@ class TranslatableTest_DataObject extends DataObject implements TestOnly {
class TranslatableTest_Extension extends DataExtension implements TestOnly {
- function extraStatics($class = null, $extension = null) {
- return array(
- 'db' => array(
- 'TranslatableDecoratedProperty' => 'Text'
- )
- );
- }
+ static $db = array(
+ 'TranslatableDecoratedProperty' => 'Text'
+ );
+
}
class TranslatableTest_Page extends Page implements TestOnly {
Please sign in to comment.
Something went wrong with that request. Please try again.