Skip to content

Commit d01b452

Browse files
schlesseraclaude
andcommitted
Check autoloading without shell-sensitive characters
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a316060 commit d01b452

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎features/behat-steps.feature‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,11 @@ Feature: Test that WP-CLI Behat steps work as expected
489489
{"a":1,"b":["c"]}
490490
"""
491491

492-
When I run `wp eval 'global $wpdb; echo $wpdb->get_var( "SELECT autoload FROM $wpdb->options WHERE option_name = \"wp_cli_test_array\"" );'`
493-
Then STDOUT should match /^(no|off)$/
492+
When I run `wp eval 'echo array_key_exists( "wp_cli_test_array", wp_load_alloptions() ) ? "autoloaded" : "not autoloaded";'`
493+
Then STDOUT should be:
494+
"""
495+
not autoloaded
496+
"""
494497

495498
@require-wp
496499
Scenario: Set several network options at once

0 commit comments

Comments
 (0)