Ejemplo n.º 1
0
 /**
  * @param \Magento\Framework\App\RequestInterface $request
  * @param bool $isVde
  * @param bool $isLoggedIn
  * @param array $routers
  * @param string|null $matchedValue
  *
  * @dataProvider matchDataProvider
  */
 public function testMatch(\Magento\Framework\App\RequestInterface $request, $isVde, $isLoggedIn, array $routers = array(), $matchedValue = null)
 {
     $this->_model = $this->_prepareMocksForTestMatch($request, $isVde, $isLoggedIn, $routers);
     $this->assertEquals($matchedValue, $this->_model->match($request));
     if ($isVde && $isLoggedIn) {
         $this->assertEquals(self::TEST_PATH, $request->getPathInfo());
     }
 }
Ejemplo n.º 2
0
 /**
  * @param \Magento\Framework\App\RequestInterface $request
  * @param bool $isVde
  * @param bool $isLoggedIn
  * @param array $routers
  * @param string|null $matchedValue
  *
  * @dataProvider matchDataProvider
  */
 public function testMatch(\Magento\Framework\App\RequestInterface $request, $isVde, $isLoggedIn, array $routers = [], $matchedValue = null)
 {
     $this->_model = $this->_prepareMocksForTestMatch($request, $isVde, $isLoggedIn, $routers);
     $this->assertEquals($matchedValue, $this->_model->match($request));
 }