mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Fix credentials change check for redirect
This commit is contained in:
parent
c037a4c03a
commit
7e64f81c19
2 changed files with 1 additions and 3 deletions
|
@ -338,7 +338,7 @@ class SettingsListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
$redirect_url = false;
|
$redirect_url = false;
|
||||||
if ( self::CREDENTIALS_UNCHANGED !== $credentials_change_status ) {
|
if ( $credentials_change_status && self::CREDENTIALS_UNCHANGED !== $credentials_change_status ) {
|
||||||
$redirect_url = $this->get_onboarding_redirect_url();
|
$redirect_url = $this->get_onboarding_redirect_url();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,8 +88,6 @@ class SettingsListenerTest extends ModularTestCase
|
||||||
$dcc_status_cache->shouldReceive('has')
|
$dcc_status_cache->shouldReceive('has')
|
||||||
->andReturn(false);
|
->andReturn(false);
|
||||||
|
|
||||||
$this->expectException(StubRedirectionException::class);
|
|
||||||
|
|
||||||
$testee->listen();
|
$testee->listen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue