Changeset 42343 for trunk/tests/phpunit/tests/functions/referer.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/functions/referer.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/referer.php
r36717 r42343 126 126 * @ticket 27152 127 127 */ 128 public function test_raw_referer_empty( ) {128 public function test_raw_referer_empty() { 129 129 $this->assertFalse( wp_get_raw_referer() ); 130 130 } … … 133 133 * @ticket 27152 134 134 */ 135 public function test_raw_referer( ) {135 public function test_raw_referer() { 136 136 $_SERVER['HTTP_REFERER'] = addslashes( 'http://example.com/foo?bar' ); 137 137 $this->assertSame( 'http://example.com/foo?bar', wp_get_raw_referer() ); … … 141 141 * @ticket 27152 142 142 */ 143 public function test_raw_referer_from_request( ) {143 public function test_raw_referer_from_request() { 144 144 $_REQUEST['_wp_http_referer'] = addslashes( 'http://foo.bar/baz' ); 145 145 $this->assertSame( 'http://foo.bar/baz', wp_get_raw_referer() ); … … 149 149 * @ticket 27152 150 150 */ 151 public function test_raw_referer_both( ) {152 $_SERVER['HTTP_REFERER'] = addslashes( 'http://example.com/foo?bar' );151 public function test_raw_referer_both() { 152 $_SERVER['HTTP_REFERER'] = addslashes( 'http://example.com/foo?bar' ); 153 153 $_REQUEST['_wp_http_referer'] = addslashes( 'http://foo.bar/baz' ); 154 154 $this->assertSame( 'http://foo.bar/baz', wp_get_raw_referer() );
Note: See TracChangeset
for help on using the changeset viewer.