Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPUnit: Add external-http group to network-dependent tests #8074

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*
* @group fonts
* @group font-library
* @group external-http
*
* @covers WP_Font_Collection::get_data
*/
Expand Down
3 changes: 3 additions & 0 deletions tests/phpunit/tests/http/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* inclusion of PEAR.
*
* The WP_Http tests require a class-http.php file of r17550 or later.
*
* @group http
* @group external-http
*/
abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
// You can use your own version of data/WPHTTP-testcase-redirection-script.php here.
Expand Down
2 changes: 2 additions & 0 deletions tests/phpunit/tests/http/wpGetHttpHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

/**
* @group http
* @group external-http
*
* @covers ::wp_get_http_headers
*/
class Tests_HTTP_wpGetHttpHeaders extends WP_UnitTestCase {
Expand Down
2 changes: 2 additions & 0 deletions tests/phpunit/tests/http/wpRemoteRetrieveHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

/**
* @group http
* @group external-http
*
* @covers ::wp_remote_retrieve_headers
*/
class Tests_HTTP_wpRemoteRetrieveHeaders extends WP_UnitTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @subpackage REST API
*
* @group restapi
* @group external-http
*/
class WP_REST_Block_Directory_Controller_Test extends WP_Test_REST_Controller_Testcase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*
* @group restapi
* @group pattern-directory
* @group external-http
*/
class WP_REST_Pattern_Directory_Controller_Test extends WP_Test_REST_Controller_Testcase {

Expand Down
1 change: 1 addition & 0 deletions tests/phpunit/tests/rest-api/rest-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @subpackage REST API
*
* @group restapi
* @group external-http
*/
class Tests_REST_Server extends WP_Test_REST_TestCase {
protected static $icon_id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*
* @group url-details
* @group restapi
* @group external-http
*/
class Tests_REST_WpRestUrlDetailsController extends WP_Test_REST_Controller_Testcase {

Expand Down
Loading