Make sure that nested relations dont break

This commit is contained in:
Daniel Hensby 2017-05-17 23:01:42 +01:00
parent efbf14be63
commit 49a0354998
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -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',
);
}