Skip to content

[Testing] add more details on how to play with fake files for file uploading #5346

Closed
@allan-simon

Description

@allan-simon

related with symfony/symfony#14805

http://symfony.com/doc/current/book/testing.html#functional-tests

The documentation only reference about file uploading is an example of code calling UploadedFile with some arguments, without explanation on these arguments.

Problem I've encountered

  • the Path has to exists , but if so , does the mime type/content/size has to fit, does precising myself the size override the one my file actually has?
    • if I can override everything why do I have to provide a valid path to start with ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions