Skip to content

Commit ad409a1

Browse files
committed
Update tests
1 parent 5a2d5c8 commit ad409a1

2 files changed

Lines changed: 2 additions & 44 deletions

File tree

‎features/plugin-install.feature‎

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,6 @@ Feature: Install WordPress plugins
282282
"""
283283
Detected WordPress.org plugins directory URL, using slug: hello-dolly
284284
"""
285-
And STDOUT should contain:
286-
"""
287-
Installing Hello Dolly
288-
"""
289-
And STDOUT should contain:
290-
"""
291-
Plugin installed successfully.
292-
"""
293285
And the return code should be 0
294286

295287
When I run `wp plugin list --name=hello-dolly --field=status`
@@ -298,27 +290,13 @@ Feature: Install WordPress plugins
298290
inactive
299291
"""
300292

301-
# Akismet currently requires WordPress 5.8
302-
@require-wp-5.8
303293
Scenario: Install and activate plugin using WordPress.org directory URL
304294
Given a WP install
305295

306-
When I run `wp plugin install https://wordpress.org/plugins/akismet/ --activate`
296+
When I run `wp plugin install https://wordpress.org/plugins/hello-dolly/ --activate`
307297
Then STDOUT should contain:
308298
"""
309-
Detected WordPress.org plugins directory URL, using slug: akismet
310-
"""
311-
And STDOUT should contain:
312-
"""
313-
Installing Akismet Anti-spam
314-
"""
315-
And STDOUT should contain:
316-
"""
317-
Plugin installed successfully.
318-
"""
319-
And STDOUT should contain:
320-
"""
321-
Activating 'akismet'...
299+
Detected WordPress.org plugins directory URL, using slug: hello-dolly
322300
"""
323301
And the return code should be 0
324302

‎features/theme-install.feature‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,6 @@ Feature: Install WordPress themes
165165
"""
166166
Detected WordPress.org themes directory URL, using slug: twentytwelve
167167
"""
168-
And STDOUT should contain:
169-
"""
170-
Installing Twenty Twelve
171-
"""
172-
And STDOUT should contain:
173-
"""
174-
Theme installed successfully.
175-
"""
176168
And the return code should be 0
177169

178170
When I run `wp theme list --name=twentytwelve --field=status`
@@ -187,18 +179,6 @@ Feature: Install WordPress themes
187179
"""
188180
Detected WordPress.org themes directory URL, using slug: twentyeleven
189181
"""
190-
And STDOUT should contain:
191-
"""
192-
Installing Twenty Eleven
193-
"""
194-
And STDOUT should contain:
195-
"""
196-
Theme installed successfully.
197-
"""
198-
And STDOUT should contain:
199-
"""
200-
Activating 'twentyeleven'...
201-
"""
202182
And the return code should be 0
203183

204184
When I run `wp theme list --name=twentyeleven --field=status`

0 commit comments

Comments
 (0)