Skip to content

Commit

Permalink
Added itemReviewed to AggregateRating
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarjan Langereis committed Apr 27, 2019
1 parent 4d43922 commit c175396
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ContextTypes/AggregateRating.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ class AggregateRating extends AbstractContext
'bestRating' => null,
'worstRating' => null,
'ratingCount' => null,
'itemReviewed' => Thing::class,
];
}
4 changes: 4 additions & 0 deletions tests/ContextTypes/AggregateRatingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class AggregateRatingTest extends TestCase
'bestRating' => 4.5,
'worstRating' => 1,
'ratingCount' => 4,
'itemReviewed' => [
'@type' => 'Thing',
'name' => 'Fluff Hut',
],
];

/**
Expand Down

0 comments on commit c175396

Please sign in to comment.