Skip to content

Commit

Permalink
feat: tried solved test error in the pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
victore13 committed Sep 18, 2024
1 parent 88350c9 commit 7c746ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Feature/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
declare(strict_types=1);

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
use Raiolanetworks\OAuth\Tests\Models\TestUser;

it('run the install command', function () {
$tempFilePath = base_path('.env');
file_put_contents($tempFilePath, 'OAUTH_BASE_URL="https://test"');

Artisan::call('config:clear');

$this->artisan('oauth:install')
->expectsQuestion('Model name Authenticatable:', TestUser::class)
->expectsQuestion('Main guard name:', 'web')
Expand Down

0 comments on commit 7c746ab

Please sign in to comment.