mirror of
https://fast.feibisi.com/https://github.com/wp-cli/scaffold-command.git
synced 2025-10-03 16:51:08 +08:00
Try replacing Hello Dolly with something else
This commit is contained in:
parent
28abef8ddc
commit
a11cc14527
1 changed files with 11 additions and 3 deletions
|
@ -209,12 +209,20 @@ Feature: Scaffold plugin unit tests
|
||||||
|
|
||||||
Scenario: Scaffold plugin tests with invalid slug
|
Scenario: Scaffold plugin tests with invalid slug
|
||||||
Given a WP install
|
Given a WP install
|
||||||
Then the {RUN_DIR}/wp-content/plugins/hello.php file should exist
|
And a wp-content/plugins/foo.php file:
|
||||||
|
"""
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Plugin Name: Foo
|
||||||
|
* Description: Foo plugin
|
||||||
|
*/
|
||||||
|
"""
|
||||||
|
Then the {RUN_DIR}/wp-content/plugins/foo.php file should exist
|
||||||
|
|
||||||
When I try `wp scaffold plugin-tests hello`
|
When I try `wp scaffold plugin-tests foo`
|
||||||
Then STDERR should be:
|
Then STDERR should be:
|
||||||
"""
|
"""
|
||||||
Error: Invalid plugin slug specified. No such target directory '{RUN_DIR}/wp-content/plugins/hello'.
|
Error: Invalid plugin slug specified. No such target directory '{RUN_DIR}/wp-content/plugins/foo'.
|
||||||
"""
|
"""
|
||||||
And the return code should be 1
|
And the return code should be 1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue