function it_return_0_if_entity_field_is_zero(MapBuilder $builder, ResourceRepository $repository, TextType $resource, ResourceEntity $entity)
 {
     $entity->getTextValue()->willReturn(0);
     $resource->getName()->willReturn('resources_group.resource_a.en');
     $repository->get('resources_group.resource_a.en')->willReturn($entity);
     $builder->getResource(Argument::type('string'))->willReturn($resource);
     $resource->getResourceProperty()->willReturn('textValue');
     $this->get('resources_group.resource_a')->shouldReturn(0);
 }
 /**
  * {@inheritdoc}
  */
 protected function publicFields()
 {
     $public_fields = parent::publicFields();
     // The mail will be shown only to the own user or privileged users.
     $public_fields['mail'] = array('property' => 'mail');
     return $public_fields;
 }