From 2f0a629df13983243b6bf61f56efed14eab978af Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 19 Mar 2013 09:44:15 +0100 Subject: [PATCH] Fixed extraStatics usage --- tests/unit/TranslatableTest.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/unit/TranslatableTest.php b/tests/unit/TranslatableTest.php index eed5404..599e0b8 100755 --- a/tests/unit/TranslatableTest.php +++ b/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 {