mirror of
https://github.com/silverstripe/silverstripe-restfulserver
synced 2024-10-22 14:05:58 +02:00
Missing yml config
This commit is contained in:
parent
a2f0724e8f
commit
2c4803bd42
@ -31,7 +31,7 @@ class JSONDataFormatterTest extends SapphireTest
|
||||
|
||||
// Grab test object
|
||||
$formatter = new JSONDataFormatter();
|
||||
$parent = $this->objFromFixture(JSONDataFormatterTypeTestObject::class, 'parent');
|
||||
$parent = $this->objFromFixture(JSONDataFormatterTypeTestObject::class, 'original');
|
||||
$json = json_decode($formatter->convertDataObject($parent));
|
||||
|
||||
// Returns valid array and isn't null
|
||||
|
@ -2,7 +2,26 @@ SilverStripe\RestfulServer\Tests\Stubs\JSONDataFormatterTypeTestObject:
|
||||
foo:
|
||||
ID: 8
|
||||
Name: Test Object 1
|
||||
parent:
|
||||
original:
|
||||
ID: 9
|
||||
Name: Test Object
|
||||
Children: =>SilverStripe\RestfulServer\Tests\Stubs\JSONDataFormatterTypeTestObject.foo
|
||||
parent:
|
||||
Name: Parent
|
||||
Active: true
|
||||
Sort: 17
|
||||
Average: 1.2345
|
||||
child1:
|
||||
Name: Child 1
|
||||
Active: 1
|
||||
Sort: 4
|
||||
Average: 6.78
|
||||
Parent: =>SilverStripe\RestfulServer\Tests\Stubs\JSONDataFormatterTypeTestObject.parent
|
||||
child2:
|
||||
Name: Child 2
|
||||
Active: false
|
||||
Sort: 9
|
||||
Average: 1
|
||||
Parent: =>SilverStripe\RestfulServer\Tests\Stubs\JSONDataFormatterTypeTestObject.parent
|
||||
child3:
|
||||
Parent: =>SilverStripe\RestfulServer\Tests\Stubs\JSONDataFormatterTypeTestObject.parent
|
||||
|
Loading…
Reference in New Issue
Block a user