Skip to content

Commit 6b94db1

Browse files
author
Peter J. Herrel
committed
update example, tweak test
1 parent 9248e4c commit 6b94db1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

features/menu-location.feature

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ Feature: Manage WordPress menu locations
4444
"""
4545

4646
When I run `wp menu location assign secondary-menu primary`
47-
And I run `wp menu list --fields=slug,locations`
47+
Then STDOUT should be:
48+
"""
49+
Success: Assigned location primary to menu secondary-menu.
50+
"""
51+
52+
When I run `wp menu list --fields=slug,locations`
4853
Then STDOUT should be a table containing rows:
4954
| slug | locations |
5055
| primary-menu | |

php/commands/menu-location.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function($o) {
100100
* ## EXAMPLES
101101
*
102102
* $ wp menu location assign primary-menu primary
103-
* Success: Assigned location to menu.
103+
* Success: Assigned location primary to menu primary-menu.
104104
*
105105
* @subcommand assign
106106
*/

0 commit comments

Comments
 (0)