public function testGetBreadcrumbLabels()
 {
     $item = new MenuItem('test', $this->factory);
     $item->setExtra('routes', array('another_route', '/another_route/', 'another*route', 'test_route'));
     $item1 = new MenuItem('test1', $this->factory);
     $item2 = new MenuItem('sub_item', $this->factory);
     $item1->addChild($item2);
     $item1->setExtra('routes', array());
     $item2->addChild($item);
     $this->provider->expects($this->once())->method('get')->will($this->returnValue($item1));
     $this->assertEquals(array('test', 'sub_item', 'test1'), $this->manager->getBreadcrumbLabels('test_menu', 'test_route'));
 }
 /** {@inheritdoc} */
 public function getBreadcrumbLabels($menu, $routeName)
 {
     $route = $this->router->getRouteCollection()->get($routeName);
     if ($this->isRouteFrontend($route)) {
         $menu = self::FRONTEND_MENU;
     }
     return parent::getBreadcrumbLabels($menu, $routeName);
 }
 /**
  * @param $route
  * @return array
  */
 protected function getBreadcrumbs($route)
 {
     return $this->breadcrumbManager->getBreadcrumbLabels($this->userConfigManager->get('oro_navigation.breadcrumb_menu'), $route);
 }