diff --git a/tests/forms/gridfield/GridFieldFilterHeaderTest.php b/tests/forms/gridfield/GridFieldFilterHeaderTest.php index a7c715b4c..fb47d1fe4 100644 --- a/tests/forms/gridfield/GridFieldFilterHeaderTest.php +++ b/tests/forms/gridfield/GridFieldFilterHeaderTest.php @@ -13,6 +13,7 @@ class GridFieldFilterHeaderTest extends SapphireTest { $method->setAccessible(true); $this->assertEquals('Title', $method->invoke($header, $class,'Title.ATT')); $this->assertEquals('isTest', $method->invoke($header, $class, 'isTest.Nice')); + $this->assertEquals('Self.isTest.Nice', $method->invoke($header, $class, 'Self.isTest.Nice')); } } @@ -24,4 +25,8 @@ class GridFieldFilterHeaderTest_DataObject extends DataObject implements TestOnl 'isTest' => 'Boolean', ); + private static $has_one = array( + 'Self' => 'GridFieldFilterHeaderTest_DataObject', + ); + }