File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments