Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
RouterTest Class Reference
Inheritance diagram for RouterTest:

Public Member Functions

 testMatch ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $_model
 

Detailed Description

@SuppressWarnings(PHPMD.CouplingBetweenObjects)

Definition at line 12 of file RouterTest.php.

Member Function Documentation

◆ setUp()

setUp ( )
protected

Definition at line 19 of file RouterTest.php.

20  {
21  $this->markTestIncomplete('MAGETWO-3393');
22  $this->_model = new \Magento\Cms\Controller\Router(
23  \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
24  \Magento\Framework\App\ActionFactory::class
25  ),
26  new \Magento\Framework\Event\ManagerInterfaceStub(
27  $this->getMockForAbstractClass(\Magento\Framework\Event\InvokerInterface::class),
28  $this->createMock(\Magento\Framework\Event\Config::class),
29  $this->createMock(\Magento\Framework\EventFactory::class),
30  $this->createMock(\Magento\Framework\Event\ObserverFactory::class)
31  ),
32  \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(\Magento\Framework\UrlInterface::class),
33  \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(\Magento\Cms\Model\PageFactory::class),
34  \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
35  \Magento\Store\Model\StoreManagerInterface::class
36  ),
37  \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
38  \Magento\Store\Model\StoreManagerInterface::class
39  )
40  );
41  }

◆ testMatch()

testMatch ( )

@magentoAppIsolation enabled

Definition at line 46 of file RouterTest.php.

47  {
48  $this->markTestIncomplete('MAGETWO-3393');
50  ->create(\Magento\Framework\App\RequestInterface::class);
51  //Open Node
52  $request->setPathInfo('parent_node');
53  $controller = $this->_model->match($request);
54  $this->assertInstanceOf(\Magento\Framework\App\Action\Redirect::class, $controller);
55  }
$controller
Definition: info.phtml:14

Field Documentation

◆ $_model

$_model
protected

Definition at line 17 of file RouterTest.php.


The documentation for this class was generated from the following file: