Changeset 7497 for trunk/tests/includes/testcase.php
- Timestamp:
- 11/02/2013 05:49:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/includes/testcase.php
r7493 r7497 301 301 $this->go_to( str_replace( $blog_1_url, '', trailingslashit( bp_get_root_domain() ) ) ); 302 302 } 303 304 /** 305 * Set up globals necessary to avoid errors when using wp_mail() 306 */ 307 public function setUp_wp_mail() { 308 $_SERVER['SERVER_NAME'] = 'example.com'; 309 } 310 311 /** 312 * Tear down globals set up in setUp_wp_mail() 313 */ 314 public function tearDown_wp_mail() { 315 unset( $_SERVER['SERVER_NAME'] ); 316 } 303 317 }
Note: See TracChangeset
for help on using the changeset viewer.