Skip to content

Commit 013a52a

Browse files
committed
Allow for warnings thrown by HybridRegistry on PHP 8+
1 parent 8c21e3e commit 013a52a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

features/theme.feature

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,31 +270,36 @@ Feature: Manage WordPress themes
270270
Success: Switched to 'Buntu' theme.
271271
"""
272272
273-
When I run `wp network-meta get 1 allowedthemes`
273+
# Hybrid_Registry throws warning for PHP 8+.
274+
When I try `wp network-meta get 1 allowedthemes`
274275
Then STDOUT should not contain:
275276
"""
276277
'buntu' => true
277278
"""
278279
279-
When I run `wp theme enable buntu --network`
280+
# Hybrid_Registry throws warning for PHP 8+.
281+
When I try `wp theme enable buntu --network`
280282
Then STDOUT should contain:
281283
"""
282284
Success: Network enabled the 'Buntu' theme.
283285
"""
284286
285-
When I run `wp network-meta get 1 allowedthemes`
287+
# Hybrid_Registry throws warning for PHP 8+.
288+
When I try `wp network-meta get 1 allowedthemes`
286289
Then STDOUT should contain:
287290
"""
288291
'buntu' => true
289292
"""
290293
291-
When I run `wp theme disable buntu --network`
294+
# Hybrid_Registry throws warning for PHP 8+.
295+
When I try `wp theme disable buntu --network`
292296
Then STDOUT should contain:
293297
"""
294298
Success: Network disabled the 'Buntu' theme.
295299
"""
296300
297-
When I run `wp network-meta get 1 allowedthemes`
301+
# Hybrid_Registry throws warning for PHP 8+.
302+
When I try `wp network-meta get 1 allowedthemes`
298303
Then STDOUT should not contain:
299304
"""
300305
'buntu' => true
@@ -351,7 +356,8 @@ Feature: Manage WordPress themes
351356
And I run `wp theme install stargazer`
352357
And I run `wp theme install --activate buntu`
353358
354-
When I run `wp theme list --fields=name,status`
359+
# Hybrid_Registry throws warning for PHP 8+.
360+
When I try `wp theme list --fields=name,status`
355361
Then STDOUT should be a table containing rows:
356362
| name | status |
357363
| buntu | active |

0 commit comments

Comments
 (0)