Example #1
0
 public function testAddBreadcrumbNoBlock()
 {
     $label = 'label';
     $title = 'title';
     $this->layoutMock->expects($this->once())->method('getBlock')->with('breadcrumbs')->willReturn(false);
     $this->breadcrumbsBlockMock->expects($this->never())->method('addLink');
     $this->assertSame($this->resultPage, $this->resultPage->addBreadcrumb($label, $title));
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function addBreadcrumb($label, $title, $link = null)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'addBreadcrumb');
     if (!$pluginInfo) {
         return parent::addBreadcrumb($label, $title, $link);
     } else {
         return $this->___callPlugins('addBreadcrumb', func_get_args(), $pluginInfo);
     }
 }