loadDataSet('CaseType'); } public function testCreateUsingLoggedInUser() { $this->createLoggedInUser(); $contactID = $this->createEntity(['type' => 'Individual'])['id']; $result = CiviCase::create(FALSE) ->addValue('case_type_id', $this->getReference('test_case_type_1')['id']) ->addValue('creator_id', 'user_contact_id') ->addValue('status_id', 1) ->addValue('contact_id', $contactID) ->execute() ->first(); } }