Skip to content

Commit

Permalink
Cast values to string for PHP 7.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
techanvil committed Feb 22, 2024
1 parent 0f55394 commit 73420b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ public function test_get_api_info() {
$wp_consent_plugin = $response_data['wpConsentPlugin'];

$this->assertFalse( $wp_consent_plugin['installed'] );
$this->assertStringStartsWith( 'http://example.org/wp-admin/plugins.php?action=activate&plugin=wp-consent-api%2Fwp-consent-api.php&_wpnonce=', $wp_consent_plugin['activateURL'] );
$this->assertStringStartsWith( 'http://example.org/wp-admin/update.php?action=install-plugin&plugin=wp-consent-api&_wpnonce=', $wp_consent_plugin['installURL'] );
$this->assertStringStartsWith( 'http://example.org/wp-admin/plugins.php?action=activate&plugin=wp-consent-api%2Fwp-consent-api.php&_wpnonce=', (string) $wp_consent_plugin['activateURL'] );
$this->assertStringStartsWith( 'http://example.org/wp-admin/update.php?action=install-plugin&plugin=wp-consent-api&_wpnonce=', (string) $wp_consent_plugin['installURL'] );
}

public function test_get_api_info__requires_authenticated_admin() {
Expand Down

0 comments on commit 73420b2

Please sign in to comment.