@@ -56,37 +56,21 @@ Feature: Requests integration with both v1 and v2
5656 When I run `wp eval 'var_dump( \W P_CLI\U tils\h ttp_request( "GET", "https://example.com/" ) );' `
5757 Then STDOUT should contain:
5858 """
59- object(WpOrg\Requests\Response)
60- """
61- And STDOUT should contain:
62- """
63- HTTP/1.1 200 OK
64- """
65- And STDERR should be empty
66-
67- When I run `wp eval 'var_dump( \W pOrg\R equests\R equests::get( "https://example.com/" ) );' `
68- Then STDOUT should contain:
69- """
70- object(WpOrg\Requests\Response)
59+ object(Requests_Response)
7160 """
7261 And STDOUT should contain:
7362 """
7463 HTTP/1.1 200 OK
7564 """
7665 And STDERR should be empty
7766
78- When I run `wp eval 'var_dump( \R equests::get( "https://example.com/" ) );' `
67+ When I run `wp plugin install duplicate-post `
7968 Then STDOUT should contain:
8069 """
81- object(WpOrg\Requests\Response)
70+ Success: Installed 1 of 1 plugins.
8271 """
83- And STDOUT should contain:
84- """
85- HTTP/1.1 200 OK
86- """
87- And STDERR should be empty
8872
89- Scenario : Current version with WordPress-bundled Requests v2
73+ Scenario : Current version with WordPress-bundled Requests v2
9074 Given a WP installation
9175 And I run `wp core update --version=6.2 --force`
9276
@@ -107,28 +91,8 @@ Feature: Requests integration with both v1 and v2
10791 """
10892 And STDERR should be empty
10993
110- When I run `wp eval 'var_dump( \W pOrg \R equests \R equests::get( "https://example.com/" ) );' `
94+ When I run `wp plugin install duplicate-post `
11195 Then STDOUT should contain:
11296 """
113- object(WpOrg\Requests\Response)
114- """
115- And STDOUT should contain:
116- """
117- HTTP/1.1 200 OK
118- """
119- And STDERR should be empty
120-
121- # Expect a deprecation warning here.
122- When I try `wp eval 'var_dump( \R equests::get( "https://example.com/" ) );' `
123- Then STDOUT should contain:
124- """
125- object(WpOrg\Requests\Response)
126- """
127- And STDOUT should contain:
128- """
129- HTTP/1.1 200 OK
130- """
131- And STDERR should contain:
132- """
133- The PSR-0 `Requests_...` class names in the Requests library are deprecated.
97+ Success: Installed 1 of 1 plugins.
13498 """
0 commit comments