Add Parcel2Go account consent with PKCE
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 26s
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 26s
This commit is contained in:
@@ -108,9 +108,11 @@ class IntegrationSettingsTest extends TestCase
|
||||
$this->assertDatabaseCount('integration_settings', 0);
|
||||
|
||||
$this->actingAs($admin)->put(route('settings.integrations.update', 'parcel2go'), [
|
||||
'scope' => 'public-api my-profile', 'collection_postcode' => 'SW1A 1AA',
|
||||
'scope' => 'public-api my-profile', 'collection_postcode' => 'SW1A 1AA', 'profile_client_id' => 'profile-client',
|
||||
])->assertRedirect(route('settings.index'));
|
||||
$this->assertSame('public-api my-profile', IntegrationSetting::findOrFail('parcel2go')->settings['scope']);
|
||||
$this->assertSame('SW1A 1AA', IntegrationSetting::findOrFail('parcel2go')->settings['collection_postcode']);
|
||||
$this->assertSame('profile-client', IntegrationSetting::findOrFail('parcel2go')->settings['profile_client_id']);
|
||||
$this->actingAs($admin)->get(route('settings.index'))->assertOk()->assertDontSee('profile-client');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user