mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Re-enabled DataObjectDecoratorTest
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60407 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c9b09e6c96
commit
4c4c20919f
@ -3,7 +3,6 @@ class DataObjectDecoratorTest extends SapphireTest {
|
|||||||
static $fixture_file = 'sapphire/tests/DataObjectTest.yml';
|
static $fixture_file = 'sapphire/tests/DataObjectTest.yml';
|
||||||
|
|
||||||
function testOneToManyAssociationWithDecorator() {
|
function testOneToManyAssociationWithDecorator() {
|
||||||
/*
|
|
||||||
// Fails in RestfulServerTest
|
// Fails in RestfulServerTest
|
||||||
// Error: Object::__call() Method 'RelatedObjects' not found in class 'RestfulServerTest_Comment'
|
// Error: Object::__call() Method 'RelatedObjects' not found in class 'RestfulServerTest_Comment'
|
||||||
$contact = new DataObjectDecoratorTest_Member();
|
$contact = new DataObjectDecoratorTest_Member();
|
||||||
@ -30,7 +29,6 @@ class DataObjectDecoratorTest extends SapphireTest {
|
|||||||
$this->assertEquals("Lorem ipsum dolor", $contact->RelatedObjects()->First()->FieldOne);
|
$this->assertEquals("Lorem ipsum dolor", $contact->RelatedObjects()->First()->FieldOne);
|
||||||
$this->assertEquals("Random notes", $contact->RelatedObjects()->First()->FieldTwo);
|
$this->assertEquals("Random notes", $contact->RelatedObjects()->First()->FieldTwo);
|
||||||
$contact->delete();
|
$contact->delete();
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -72,5 +70,5 @@ class DataObjectDecoratorTest_RelatedObject extends DataObject implements TestOn
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//DataObject::add_extension('DataObjectDecoratorTest_Member', 'DataObjectDecoratorTest_ContactRole');
|
DataObject::add_extension('DataObjectDecoratorTest_Member', 'DataObjectDecoratorTest_ContactRole');
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user