Beispiel #1
0
 public function testGetTotalReviews()
 {
     $primaryKey = 'review_id';
     $approvedOnly = false;
     $storeId = 0;
     $result = 5;
     $this->resource->expects($this->once())->method('getTotalReviews')->with($this->equalTo($primaryKey), $this->equalTo($approvedOnly), $this->equalTo($storeId))->will($this->returnValue($result));
     $this->assertSame($result, $this->review->getTotalReviews($primaryKey, $approvedOnly, $storeId));
 }