wp-cli-fixtures/features/file.feature
Nicolas Lemoine f1707ae92f
- Remove tests waiting for wp-cli/wp-cli-tests to resolve dependencies conflicts
- Add `AliceProvider`
- Add formatters (<fileIn>, <fileContent>)
- Add ACF support
2019-04-06 12:19:54 +02:00

19 lines
491 B
Gherkin

Feature: Custom fixtures file
Scenario: Load a custom file
Given a WP install
And a post.yml file:
"""
Hellonico\Fixtures\Entity\Post:
post{1..5}:
post_title: <sentence()>
post_content: <paragraphs(5, true)>
post_excerpt: <paragraphs(1, true)>
post_date: <dateTimeThisDecade()>
"""
When I run `wp fixtures load --file=post.yml`
Then STDOUT should contain:
"""
5 posts have been successfully created
"""