Sylius\Behat\Page\Shop\Product\ShowPageInterface::getAverageRating PHP Метод

getAverageRating() публичный Метод

public getAverageRating ( ) : float
Результат float
    public function getAverageRating();

Usage Example

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