有人用 VichFileTypefield 做了单元表单测试?当我运行表单类型测试时,我得到:
Argument 1 passed to Vich\UploaderBundle\Form\Type\VichFileType::__construct() must implement interface Vich\UploaderBundle\Storage\StorageInterface
那是因为
public function __construct(
StorageInterface $storage,
UploadHandler $handler,
TranslatorInterface $translator
)
我怎样才能通过这些?