Merge branch 'trunk' into PCP-506-api

This commit is contained in:
Alex P 2023-03-17 17:23:47 +02:00
commit e5c9ef86a3
No known key found for this signature in database
GPG key ID: 54487A734A204D71
2 changed files with 1 additions and 3 deletions

View file

@ -338,7 +338,7 @@ class SettingsListener {
}
$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();
}

View file

@ -88,8 +88,6 @@ class SettingsListenerTest extends ModularTestCase
$dcc_status_cache->shouldReceive('has')
->andReturn(false);
$this->expectException(StubRedirectionException::class);
$testee->listen();
}
}