WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#34000 closed defect (bug) (fixed)

Correctly use WP_TESTS_DOMAIN in unit tests

Reported by: johnbillion Owned by: johnbillion
Milestone: 4.4 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords:
Focuses: Cc:

Description

When the WP_TESTS_DOMAIN constant is changed, some unit tests fail because they hard code example.org.

Attachments (1)

34000.patch (5.9 KB) - added by johnbillion 5 years ago.

Download all attachments as: .zip

Change History (5)

@johnbillion
5 years ago

#1 @johnbillion
5 years ago

  • Owner set to johnbillion
  • Resolution set to fixed
  • Status changed from new to closed

In 34519:

Use WP_TESTS_DOMAIN where it should be used in tests in place of hard-coded uses of example.org.

Also corrects a test value in the data provider for Tests_Sanitize_Option::test_sanitize_option() which was only consequentially passing.

Fixes #34000

#2 @johnbillion
5 years ago

In 35346:

Correct some more tests which were using example.org instead of WP_TESTS_DOMAIN.

See #33641, #34000

#3 @johnbillion
5 years ago

In 35347:

Correctly use WP_TESTS_EMAIL in email tests.

See #761, #34000

#4 @johnbillion
4 years ago

In 36717:

Correct some more tests which were using example.org instead of WP_TESTS_DOMAIN.

See #34000

Note: See TracTickets for help on using tickets.