/** * Loads a statement with a group as an actor. * * @param string $id The id of the new Statement * * @return Statement */ public static function getStatementWithGroupActor($id = self::DEFAULT_STATEMENT_ID) { $group = ActorFixtures::getGroup(); $verb = VerbFixtures::getVerb(); $activity = ActivityFixtures::getActivity(); return new Statement($id, $group, $verb, $activity); }
public function testSerializeGroup() { $group = ActorFixtures::getGroup(); $this->assertJsonEquals(ActorJsonFixtures::getGroup(), $this->actorSerializer->serializeActor($group)); }
public function getObjectsToValidate() { return array(array(ActorFixtures::getAnonymousGroup(), 0, array('anonymous')), array(ActorFixtures::getGroup(), 0, array('identified'))); }