Changeset 31515
- Timestamp:
- 02/23/2015 01:07:18 AM (10 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r31469 r31515 334 334 $parts = parse_url($url); 335 335 if (isset($parts['scheme'])) { 336 $req = $parts['path'];336 $req = isset( $parts['path'] ) ? $parts['path'] : ''; 337 337 if (isset($parts['query'])) { 338 338 $req .= '?' . $parts['query']; -
trunk/tests/phpunit/tests/includes/helpers.php
r31306 r31515 186 186 } 187 187 188 /** 189 * @ticket 31417 190 */ 191 public function test_go_to_should_go_to_home_page_when_passing_the_untrailingslashed_home_url() { 192 $this->assertFalse( is_home() ); 193 $home = untrailingslashit( get_option( 'home' ) ); 194 $this->go_to( $home ); 195 $this->assertTrue( is_home() ); 196 } 197 188 198 protected function mock_deprecated() { 189 199 _deprecated_function( __METHOD__, '2.5' );
Note: See TracChangeset
for help on using the changeset viewer.