예제 #1
0
 public function testGetCacheKeyInfo()
 {
     $crumbs = array('test' => array('label' => 'test label', 'title' => 'test title', 'link' => 'test link'));
     foreach ($crumbs as $crumbName => &$crumb) {
         $this->_block->addCrumb($crumbName, $crumb);
         $crumb += array('first' => null, 'last' => null, 'readonly' => null);
     }
     $cacheKeyInfo = $this->_block->getCacheKeyInfo();
     $crumbsFromCacheKey = unserialize(base64_decode($cacheKeyInfo['crumbs']));
     $this->assertEquals($crumbs, $crumbsFromCacheKey);
 }
 protected function _toHtml()
 {
     $this->setModuleName($this->extractModuleName('Magento\\Theme\\Block\\Html\\Breadcrumbs'));
     return parent::_toHtml();
 }