/**
* Emulate a logged in user since certain functions use that.
* value to store a record in the DB (like activity)
+ *
* @see https://issues.civicrm.org/jira/browse/CRM-8180
*
* @return int
* Contact ID of the created user.
+ * @throws \CiviCRM_API3_Exception
*/
- public function createLoggedInUser() {
+ public function createLoggedInUser(): int {
$params = [
'first_name' => 'Logged In',
'last_name' => 'User ' . rand(),