Give an account of the registry a file of the fixtures, at the top of its files or in a folder (made when it is not there), as test data. The file is removed after the scenario.
Examples
Given "user" has the file "meeting-notes.md"
Given "user" has the file "team-photo.png" in the folder "Project files"
Given "editor" has the file "annual-report.pdf"
And "user" has the file "budget.txt" in the folder "Project files/Reports"
Given "administrator" has the file "meeting-notes.md"
Pattern
Given(/^"([^"]*)" has the file "([^"]*)"(?: in the folder "([^"]*)")?$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.