Changeset 48937 for trunk/tests/phpunit/tests/canonical/https.php
- Timestamp:
- 09/02/2020 12:35:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical/https.php
r46586 r48937 25 25 */ 26 26 public function test_http_request_with_http_home() { 27 28 27 $redirect = redirect_canonical( $this->http, false ); 29 28 30 $this->assertEquals( $redirect, false ); 31 29 $this->assertNull( $redirect ); 32 30 } 33 31 … … 36 34 */ 37 35 public function test_https_request_with_http_home() { 38 39 36 $redirect = redirect_canonical( $this->https, false ); 40 37 41 $this->assertEquals( $redirect, false ); 42 38 $this->assertNull( $redirect ); 43 39 } 44 40 … … 47 43 */ 48 44 public function test_https_request_with_https_home() { 49 50 45 add_filter( 'home_url', array( $this, 'set_https' ) ); 51 46 52 47 $redirect = redirect_canonical( $this->https, false ); 53 48 54 $this->assert Equals( $redirect, false);49 $this->assertNull( $redirect ); 55 50 56 51 remove_filter( 'home_url', array( $this, 'set_https' ) ); 57 58 52 } 59 53
Note: See TracChangeset
for help on using the changeset viewer.