Skip to content

Commit

Permalink
Merge pull request #52 from madman-81/AggregateRating_add_itemReviewed
Browse files Browse the repository at this point in the history
Added itemReviewed to AggregateRating
  • Loading branch information
Torann authored May 8, 2019
2 parents d2a926f + a5ff5c9 commit db39864
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 db39864

Please sign in to comment.