Skip to content

Commit f41b67a

Browse files
committed
Add test (WIP)
1 parent c42149e commit f41b67a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

features/network-meta.feature

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,32 @@ Feature: Manage network-wide custom fields.
1616
This is not a multisite install
1717
"""
1818
And the return code should be 1
19+
20+
# TODO: FIXME
21+
Scenario: Network meta is actually network options
22+
Given a WP multisite install
23+
24+
When I run `wp eval 'update_network_option( 1, "mykey", "123" );'`
25+
And I run `wp eval 'echo get_network_option( 1, "mykey" );'`
26+
Then STDOUT should be:
27+
"""
28+
123
29+
"""
30+
31+
When I run `wp network meta update 1 mykey 456`
32+
Then STDOUT should be:
33+
"""
34+
Success: Updated custom field 'mykey'.
35+
"""
36+
37+
When I run `wp network meta get 1 mykey`
38+
Then STDOUT should be:
39+
"""
40+
456
41+
"""
42+
43+
When I run `wp eval 'echo get_network_option( 1, "mykey" );'`
44+
Then STDOUT should be:
45+
"""
46+
456
47+
"""

0 commit comments

Comments
 (0)