Esempio n. 1
0
 /**
  * @return void
  */
 public function testGetPageHeading()
 {
     $title = 'some title';
     $this->pageTitleMock->expects($this->once())->method('getShortHeading')->willReturn($title);
     $this->pageConfigMock->expects($this->once())->method('getTitle')->willReturn($this->pageTitleMock);
     $this->assertEquals($title, $this->htmlTitle->getPageHeading());
 }
Esempio n. 2
0
 protected function _toHtml()
 {
     // $this->setModuleName($this->extractModuleName('Magento\Theme\Block\Html\Title'));
     return parent::_toHtml();
 }