diff --git a/src/StatementFixtures.php b/src/StatementFixtures.php index e982f1a..7c937e7 100644 --- a/src/StatementFixtures.php +++ b/src/StatementFixtures.php @@ -81,6 +81,25 @@ public static function getStatementWithGroupActorWithoutMembers($id = self::DEFA return new Statement($id, $group, $verb, $activity); } + /** + * Loads a statement including an activity. + * + * @param string $id The id of the new Statement + * + * @return Statement + */ + public static function getStatementWithActivity($id = self::DEFAULT_STATEMENT_ID) + { + $minimalStatement = static::getMinimalStatement($id); + + return new Statement( + $minimalStatement->getId(), + $minimalStatement->getActor(), + $minimalStatement->getVerb(), + ActivityFixtures::getActivity() + ); + } + /** * Loads a statement including a reference to another statement. *