Skip to content

Commit

Permalink
Fixes unit test to work in older version of PHPUnit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaosExAnima committed Mar 27, 2020
1 parent fa8dded commit 0d46a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/general/test_class.jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ public function partner_code_provider() {
*/
public function test_login_url_add_redirect() {
$login_url = wp_login_url( '/wp-admin' );
$this->assertStringNotContainsString( $login_url, Jetpack::$jetpack_redirect_login );
$this->assertFalse( strpos( $login_url, Jetpack::$jetpack_redirect_login ) );

$login_url = wp_login_url( '/wp-admin?' . Jetpack::$jetpack_redirect_login . '=true' );
parse_str( wp_parse_url( $login_url, PHP_URL_QUERY ), $login_parts );
Expand Down

0 comments on commit 0d46a7b

Please sign in to comment.