public function testGetParentId() { $this->rawLayoutBuilder->add('root', null, 'root')->add('header', 'root', 'header'); $this->item->initialize('header'); $this->assertEquals('root', $this->item->getParentId()); }
public function testGetOptions() { $this->rawLayoutBuilder->add('root', null, 'root')->add('logo', 'root', 'logo', ['title' => 'test']); $this->assertSame([], $this->rawLayoutBuilder->getOptions('root')); $this->assertSame(['title' => 'test'], $this->rawLayoutBuilder->getOptions('logo')); }