Skip to content

Commit 371e60f

Browse files
Copilotswissspidy
andcommitted
Add exit command and tests
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent f94d780 commit 371e60f

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

features/shell.feature

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,21 @@ Feature: WordPress REPL
7979
"""
8080
=> int(2)
8181
"""
82+
83+
Scenario: Exit shell
84+
Given a WP install
85+
And a session file:
86+
"""
87+
$a = 1;
88+
exit
89+
"""
90+
91+
When I run `wp shell --basic < session`
92+
Then STDOUT should contain:
93+
"""
94+
=> int(1)
95+
"""
96+
And STDOUT should not contain:
97+
"""
98+
exit
99+
"""

0 commit comments

Comments
 (0)