Пример #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());
     }
 }
Пример #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));
 }