Exemplo n.º 1
0
 public function testUnsetChild()
 {
     $parentName = 'parent';
     $alias = 'some_alias';
     $this->structureMock->expects($this->once())->method('unsetChild')->with($this->equalTo($parentName), $this->equalTo($alias))->will($this->returnSelf());
     $this->assertSame($this->model, $this->model->unsetChild($parentName, $alias));
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function unsetChild($parentName, $alias)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'unsetChild');
     if (!$pluginInfo) {
         return parent::unsetChild($parentName, $alias);
     } else {
         return $this->___callPlugins('unsetChild', func_get_args(), $pluginInfo);
     }
 }