mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Make sure that nested relations dont break
This commit is contained in:
parent
efbf14be63
commit
49a0354998
@ -13,6 +13,7 @@ class GridFieldFilterHeaderTest extends SapphireTest {
|
|||||||
$method->setAccessible(true);
|
$method->setAccessible(true);
|
||||||
$this->assertEquals('Title', $method->invoke($header, $class,'Title.ATT'));
|
$this->assertEquals('Title', $method->invoke($header, $class,'Title.ATT'));
|
||||||
$this->assertEquals('isTest', $method->invoke($header, $class, 'isTest.Nice'));
|
$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',
|
'isTest' => 'Boolean',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
private static $has_one = array(
|
||||||
|
'Self' => 'GridFieldFilterHeaderTest_DataObject',
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user