public function testGetReviewUrl() { $result = 'http://some.url'; $this->urlInterfaceMock->expects($this->once())->method('getUrl')->with($this->equalTo('review/product/view'), $this->equalTo(['id' => $this->reviewId]))->will($this->returnValue($result)); $this->assertSame($result, $this->review->getReviewUrl()); }