Exemplo n.º 1
0
 public function testGetParentId()
 {
     $this->rawLayoutBuilder->add('root', null, 'root')->add('header', 'root', 'header');
     $this->item->initialize('header');
     $this->assertEquals('root', $this->item->getParentId());
 }
Exemplo n.º 2
0
 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'));
 }