Exemple #1
0
 /**
  * @covers \Magento\Backend\Helper\Data::getPageHelpUrl
  * @covers \Magento\Backend\Helper\Data::setPageHelpUrl
  * @covers \Magento\Backend\Helper\Data::addPageHelpUrl
  */
 public function testPageHelpUrl()
 {
     \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Framework\\App\\RequestInterface')->setControllerModule('dummy')->setControllerName('index')->setActionName('test');
     $expected = 'http://www.magentocommerce.com/gethelp/en_US/dummy/index/test/';
     $this->assertEquals($expected, $this->_helper->getPageHelpUrl(), 'Incorrect help Url');
     $this->_helper->addPageHelpUrl('dummy');
     $expected .= 'dummy';
     $this->assertEquals($expected, $this->_helper->getPageHelpUrl(), 'Incorrect help Url suffix');
 }