Sylius\Behat\Page\Shop\Product\ShowPageInterface::getAverageRating PHP Method

getAverageRating() public method

public getAverageRating ( ) : float
return float
    public function getAverageRating();

Usage Example

Ejemplo n.º 1
0
 /**
  * @Then I should see :rating as its average rating
  */
 public function iShouldSeeAsItsAverageRating($rating)
 {
     $averageRating = $this->showPage->getAverageRating();
     Assert::same((double) $rating, $averageRating, 'Product should have average rating %2$s but has %s.');
 }