Beispiel #1
0
 /**
  * @param int $productId
  * @param int $storeId
  * @param string $result
  * @dataProvider getProductUrlDataProvider
  */
 public function testGetProductUrl($productId, $storeId, $result)
 {
     if ($storeId) {
         $this->urlInterfaceMock->expects($this->once())->method('setScope')->with($this->equalTo($storeId))->will($this->returnSelf());
     }
     $this->urlInterfaceMock->expects($this->once())->method('getUrl')->with($this->equalTo('catalog/product/view'), $this->equalTo(['id' => $productId]))->will($this->returnValue($result));
     $this->assertSame($result, $this->review->getProductUrl($productId, $storeId));
 }