Simplify integration settings management
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 1m48s
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 1m48s
This commit is contained in:
@@ -91,11 +91,16 @@ class IntegrationSettingsTest extends TestCase
|
||||
|
||||
public function test_endpoint_urls_must_use_https(): void
|
||||
{
|
||||
config()->set('services.bambuddy.url', 'https://bambuddy.example.test');
|
||||
config()->set('services.dryer.url', 'https://dryer.example.test/api/v1');
|
||||
$this->actingAs(User::factory()->create(['role' => 'admin']))
|
||||
->put(route('settings.integrations.update', 'dryer'), [
|
||||
'url' => 'http://dryer.example.test', 'api_key' => 'key',
|
||||
'url' => 'http://dryer.example.test', 'api_key' => 'key', 'settings_section' => 'dryer',
|
||||
])->assertSessionHasErrors('url');
|
||||
$this->assertDatabaseCount('integration_settings', 0);
|
||||
$this->get(route('settings.index'))->assertOk()
|
||||
->assertSee('value="https://bambuddy.example.test"', false)
|
||||
->assertSee('value="http://dryer.example.test"', false);
|
||||
}
|
||||
|
||||
public function test_parcel2go_scope_is_validated_and_saved(): void
|
||||
|
||||
Reference in New Issue
Block a user