public function testInsertSection() { $expected =
[ new Section('layout_test_plugin',
['setting_1' => 'Default'
],
[ '10000000-0000-1000-a000-000000000000' =>
new SectionComponent('10000000-0000-1000-a000-000000000000', 'content',
['id' => 'foo'
]),
]),
new Section('layout_onecol'
),
new Section('layout_test_plugin',
['setting_1' => 'bar'
],
[ '20000000-0000-1000-a000-000000000000' =>
new SectionComponent('20000000-0000-1000-a000-000000000000', 'content',
['id' => 'foo'
]),
]),
];
$this->sectionList->
insertSection(1,
new Section('layout_onecol'
));
$this->
assertSections($expected);
} /**
* @covers ::appendSection
*/
public function testAppendSection() { $expected =
[ new Section('layout_test_plugin',
['setting_1' => 'Default'
],
[ '10000000-0000-1000-a000-000000000000' =>
new SectionComponent('10000000-0000-1000-a000-000000000000', 'content',
['id' => 'foo'
]),
]),