Skip to content

Commit 2cbdfb8

Browse files
authored
Tests: Specify port to make tests pass (#1142)
1 parent 134dddb commit 2cbdfb8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.wp-env.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"WP_SITEURL": "http://example.org",
99
"WP_HOME": "http://example.org"
1010
},
11+
"port": 80,
1112
"mappings": {
1213
"wp-content/plugins/activitypub": ".",
1314
"wp-content/plugins/activitypub/tests": "./tests"

tests/bootstrap.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77

88
\define( 'ACTIVITYPUB_DISABLE_INCOMING_INTERACTIONS', false );
99

10-
// Defined here because setting them in .wp-env.json doesn't work for some reason.
11-
\define( 'WP_TESTS_DOMAIN', 'example.org' );
12-
\define( 'WP_SITEURL', 'http://example.org' );
13-
\define( 'WP_HOME', 'http://example.org' );
14-
1510
\define( 'AP_TESTS_DIR', __DIR__ );
1611
$_tests_dir = \getenv( 'WP_TESTS_DIR' );
1712

0 commit comments

Comments
 (0)