File tree Expand file tree Collapse file tree 1 file changed +38
-1
lines changed
Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ Feature: Manage network-wide custom fields.
1717 """
1818 And the return code should be 1
1919
20- # TODO: FIXME
2120 Scenario : Network meta is actually network options
2221 Given a WP multisite install
2322
@@ -44,4 +43,42 @@ Feature: Manage network-wide custom fields.
4443 Then STDOUT should be:
4544 """
4645 456
46+ """
47+
48+ @require-object-cache
49+ Scenario : Object cache correctly handles network meta updates
50+ Given a WP multisite install
51+
52+ When I run `wp eval 'update_network_option( 1, "objkey", "123" );' `
53+
54+ When I run `wp network meta get 1 objkey`
55+ Then STDOUT should be:
56+ """
57+ 123
58+ """
59+
60+ When I run `wp eval 'update_network_option( 1, "objkey", "456" );' `
61+
62+ When I run `wp network meta get 1 objkey`
63+ Then STDOUT should be:
64+ """
65+ 456
66+ """
67+
68+ When I run `wp network meta update 1 objkey 789`
69+ Then STDOUT should be:
70+ """
71+ Success: Updated custom field 'objkey'.
72+ """
73+
74+ When I run `wp network meta get 1 objkey`
75+ Then STDOUT should be:
76+ """
77+ 789
78+ """
79+
80+ When I run `wp eval 'echo get_network_option( 1, "objkey" );' `
81+ Then STDOUT should be:
82+ """
83+ 789
4784 """
You can’t perform that action at this time.
0 commit comments