function it_sets_not_translated_attribute_when_property_no_translation(FSiFilePathResolver $filePathResolver, File $uploadableFile, FormInterface $form, FormInterface $parentForm, TranslatableFormHelper $translatableFormHelper)
 {
     $view = new FormView();
     $fileView = new FormView($view);
     $removeView = new FormView($view);
     $view->children['translatable_property'] = $fileView;
     $view->children['remove'] = $removeView;
     $translatableFormHelper->getFirstTranslatableParent($form)->willReturn($parentForm);
     $translatableFormHelper->isFormPropertyPathTranslatable($form)->willReturn(true);
     $translatableFormHelper->isFormDataInCurrentLocale($parentForm)->willReturn(false);
     $translatableFormHelper->getFormNormDataLocale($parentForm)->willReturn('en');
     $form->getName()->willReturn('translatable_property');
     $data = new \stdClass();
     $view->vars['value'] = $data;
     $fileView->vars['value'] = $uploadableFile->getWrappedObject();
     $fileView->vars['data'] = $uploadableFile->getWrappedObject();
     $filePathResolver->fileBasename($uploadableFile->getWrappedObject())->willReturn('default-locale-filename');
     $filePathResolver->fileUrl($uploadableFile->getWrappedObject())->willReturn('default-locale-url');
     $this->finishView($view, $form, array('remove_name' => 'remove'));
     expect($view->vars['translatable'])->toBe(true);
     expect($view->vars['not_translated'])->toBe(true);
     expect($view->vars['label_attr']['data-default-locale'])->toBe('en');
     expect($view->vars['label_attr']['data-default-locale-value'])->toBe('default-locale-filename');
     expect($view->vars['label_attr']['data-default-locale-url'])->toBe('default-locale-url');
     expect($fileView->vars['value'])->toBe(null);
     expect($fileView->vars['data'])->toBe(null);
     expect($removeView->vars['checked'])->toBe(true);
 }