public function prepareTestObjects()
{
$this->setupServices();
$object = $this->mocks()->getObject(['owner_guid' => $this->actor->guid, 'container_guid' => $this->actor->guid, 'access_id' => ACCESS_LOGGED_IN, 'subtype' => 'test_subtype']);
$group = $this->mocks()->getGroup(['owner_guid' => $this->actor->guid, 'container_guid' => $this->actor->guid, 'access_id' => ACCESS_LOGGED_IN]);
$user = $this->actor;
$metadata_id = create_metadata($object->guid, 'test_metadata_name', 'test_metadata_value', 'text', $this->actor->guid, ACCESS_PUBLIC);
$metadata = elgg_get_metadata_from_id($metadata_id);
$annotation_id = $object->annotate('test_annotation_name', 'test_annotation_value', 'text', $this->actor->guid, ACCESS_PUBLIC);
$annotation = elgg_get_annotation_from_id($annotation_id);
add_entity_relationship($object->guid, 'test_relationship', $user->guid);
$relationship = check_entity_relationship($object->guid, 'test_relationship', $user->guid);
return [$object, $group, $user, $metadata, $annotation, $relationship];
}