This commit is contained in:
Thomas Peterson 2025-07-25 16:39:18 +02:00
parent 3f82f1d009
commit 71cfbe24a0
3 changed files with 5608 additions and 5604 deletions

File diff suppressed because it is too large Load Diff

View File

@ -57,6 +57,7 @@ class Fieldset extends Base
$obj->id = $this->getId(); $obj->id = $this->getId();
$obj->dependencys = []; $obj->dependencys = [];
$obj->options = []; $obj->options = [];
$obj->name = $this->name;
$obj->type = 12; $obj->type = 12;
foreach ($this->edgesCollectionContainer as $col) { foreach ($this->edgesCollectionContainer as $col) {
$obj->dependencys[] = $col->generateJson(); $obj->dependencys[] = $col->generateJson();

View File

@ -15,6 +15,7 @@ class FieldsetTest extends TestCase
{ {
$this->json = json_decode('{ $this->json = json_decode('{
"id": "1", "id": "1",
"name": "Inhalt",
"dependencys": [], "dependencys": [],
"type": 12, "type": 12,
"options": [ "options": [
@ -40,7 +41,7 @@ class FieldsetTest extends TestCase
] ]
}', true); }', true);
$this->xml = '<option type="Fieldset" id="1"><option default="100" id="auflage" name="Auflage" placeholder="Placeholder" type="Input"/><option default="2" id="seiten_umschlag" name="Seiten Umschlag" placeholder="Placeholder" type="Input"/></option>'; $this->xml = '<option type="Fieldset" name="Inhalt" id="1"><option default="100" id="auflage" name="Auflage" placeholder="Placeholder" type="Input"/><option default="2" id="seiten_umschlag" name="Seiten Umschlag" placeholder="Placeholder" type="Input"/></option>';
} }
public function testFromJson() public function testFromJson()