mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
test: use TrmnlPipeline::fake() to speed up test suite
This commit is contained in:
parent
42b515e322
commit
a1a57014b6
9 changed files with 119 additions and 102 deletions
|
|
@ -10,7 +10,15 @@ test('oidc test command has correct signature', function () {
|
|||
});
|
||||
|
||||
test('oidc test command runs successfully with disabled oidc', function () {
|
||||
config(['services.oidc.enabled' => false]);
|
||||
config([
|
||||
'app.url' => 'http://localhost',
|
||||
'services.oidc.enabled' => false,
|
||||
'services.oidc.endpoint' => null,
|
||||
'services.oidc.client_id' => null,
|
||||
'services.oidc.client_secret' => null,
|
||||
'services.oidc.redirect' => null,
|
||||
'services.oidc.scopes' => [],
|
||||
]);
|
||||
|
||||
$this->artisan('oidc:test')
|
||||
->expectsOutput('Testing OIDC Configuration...')
|
||||
|
|
@ -34,6 +42,7 @@ test('oidc test command runs successfully with disabled oidc', function () {
|
|||
|
||||
test('oidc test command runs successfully with enabled oidc but missing config', function () {
|
||||
config([
|
||||
'app.url' => 'http://localhost',
|
||||
'services.oidc.enabled' => true,
|
||||
'services.oidc.endpoint' => null,
|
||||
'services.oidc.client_id' => null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue