コード例 #1
0
 /**
  * @dataProvider isParentForDataProvider
  */
 public function testIsParentFor($expected, $parentId, $id)
 {
     $this->rawLayoutBuilder->add('root', null, 'root')->add('header', 'root', 'header')->add('logo', 'header', 'logo')->addAlias('root_alias', 'root')->addAlias('header_alias', 'header')->addAlias('logo_alias', 'logo');
     $this->assertEquals($expected, $this->rawLayoutBuilder->isParentFor($parentId, $id));
 }