Skip to content

Commit

Permalink
Fix the testcases for the --autolaod flag in option list command
Browse files Browse the repository at this point in the history
  • Loading branch information
imrraaj committed Nov 5, 2024
1 parent c47bdaa commit f607f76
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions features/option-list.feature
Original file line number Diff line number Diff line change
Expand Up @@ -173,54 +173,7 @@ Feature: List WordPress options
"""
sample_value_three
"""
Scenario: Using the `--autoload=off` flag
Given a WP install
And I run `wp option add sample_autoload_one 'sample_value_one' --autoload=yes`
And I run `wp option add sample_autoload_two 'sample_value_two' --autoload=no`
And I run `wp option add sample_autoload_three 'sample_value_three' --autoload=on`
And I run `wp option add sample_autoload_four 'sample_value_four' --autoload=off`

When I run `wp option list --autoload=off`
Then STDOUT should not contain:
"""
sample_value_one
"""
And STDOUT should not contain:
"""
sample_value_three
"""
And STDOUT should contain:
"""
sample_value_two
"""
And STDOUT should contain:
"""
<<<<<<< HEAD
Scenario: Using the `--autoload=on` flag
Given a WP install
And I run `wp option add sample_autoload_one 'sample_value_one' --autoload=yes`
And I run `wp option add sample_autoload_two 'sample_value_two' --autoload=no`
And I run `wp option add sample_autoload_three 'sample_value_three' --autoload=on`
And I run `wp option add sample_autoload_four 'sample_value_four' --autoload=off`

When I run `wp option list --autoload=on`
Then STDOUT should not contain:
"""
sample_value_two
"""
And STDOUT should not contain:
"""
sample_value_four
"""
And STDOUT should contain:
"""
sample_value_one
"""
And STDOUT should contain:
"""
sample_value_three
"""
Scenario: Using the `--autoload=off` flag
Given a WP install
And I run `wp option add sample_autoload_one 'sample_value_one' --autoload=yes`
Expand All @@ -243,7 +196,5 @@ Feature: List WordPress options
"""
And STDOUT should contain:
"""
=======
>>>>>>> a5e51e030cb4060441c45eaa323785178e4c9117
sample_value_four
"""

0 comments on commit f607f76

Please sign in to comment.