We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wp eval
1 parent b74bc47 commit d28445fCopy full SHA for d28445f
features/transient-patch.feature
@@ -2,16 +2,8 @@ Feature: Patch command available for the transient cache
2
3
Scenario: Nested values from transient can be updated at any depth.
4
Given a WP install
5
- And a wp-content/mu-plugins/test-harness.php file:
6
- """php
7
- <?php
8
- $set_foo = function(){
9
- set_transient( 'my_key', ['foo' => 'bar'] );
10
- set_transient( 'my_key_2', ['foo' => ['bar' => 'baz']] );
11
- };
12
-
13
- WP_CLI::add_hook( 'before_invoke:transient patch', $set_foo );
14
- """
+ And I run `wp eval "set_transient( 'my_key', ['foo' => 'bar'] );"`
+ And I run `wp eval "set_transient( 'my_key_2', ['foo' => ['bar' => 'baz']] );"`
15
16
When I run `wp transient patch insert my_key fuz baz`
17
Then STDOUT should be:
0 commit comments