Skip to content

Commit c0c0bc6

Browse files
committed
no /dev/null
1 parent 23a8ee6 commit c0c0bc6

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

features/shell.feature

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ Feature: WordPress REPL
33
Scenario: Blank session
44
Given a WP install
55

6-
When I run `wp shell < /dev/null`
7-
And I run `wp shell --basic < /dev/null`
6+
And an empty_session file:
7+
"""
8+
"""
9+
10+
When I run `wp shell < empty_session`
11+
And I run `wp shell --basic < empty_session`
812
Then STDOUT should be empty
913
1014
Scenario: Persistent environment
@@ -252,7 +256,11 @@ Feature: WordPress REPL
252256
Scenario: Shell with hook parameter for hook that hasn't fired
253257
Given a WP install
254258
255-
When I try `wp shell --basic --hook=shutdown < /dev/null`
259+
And an empty_session file:
260+
"""
261+
"""
262+
263+
When I try `wp shell --basic --hook=shutdown < empty_session`
256264
Then STDERR should contain:
257265
"""
258266
Error: The 'shutdown' hook has not fired yet

0 commit comments

Comments
 (0)