mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-05 17:50:03 +00:00
Initialise $_SERVER['SERVER_NAME'] during the test bootstrap to avoid individual tests having to do it.
Fixes #34394 git-svn-id: https://develop.svn.wordpress.org/trunk@35350 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -379,12 +379,6 @@ class Tests_Comment extends WP_UnitTestCase {
|
||||
* @access public
|
||||
*/
|
||||
public function setup_notify_comment(){
|
||||
/**
|
||||
* Mock some server variables.
|
||||
*/
|
||||
$_SERVER['SERVER_NAME'] = 'phpunit.wordpress.dev';
|
||||
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
|
||||
|
||||
/**
|
||||
* Prevent flood alert from firing.
|
||||
*/
|
||||
|
||||
@@ -188,7 +188,7 @@ class Tests_Mail extends WP_UnitTestCase {
|
||||
$subject = "Testing";
|
||||
$message = "Test Message";
|
||||
$headers = "From: ";
|
||||
$expected = "From: WordPress <wordpress@example.com>";
|
||||
$expected = "From: WordPress <wordpress@" . WP_TESTS_DOMAIN . ">";
|
||||
|
||||
wp_mail( $to, $subject, $message, $headers );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user