/** * @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()); }
protected function _toHtml() { // $this->setModuleName($this->extractModuleName('Magento\Theme\Block\Html\Title')); return parent::_toHtml(); }