/**
  * @test
  **/
 public function canShowAllCustomFieldsType()
 {
     $this->stopPermissionCheckEvent();
     $profile_type = ProfileFieldType::create(["description" => "invoice number"]);
     $profile_types = $this->custom_profile_1->getAllTypes();
     $this->objectHasAllArrayAttributes($profile_type->toArray(), $profile_types->first());
 }
 public static function addNewType($description)
 {
     // firing event so it can get catched for permission handling
     Event::fire('customprofile.creating');
     $profile_field_type = ProfileFieldType::create(["description" => $description]);
     return $profile_field_type;
 }