Skip to content

Commit

Permalink
ci: fix test case RouteServiceProvider reference
Browse files Browse the repository at this point in the history
  • Loading branch information
keenthekeen committed May 9, 2024
1 parent b48fb8f commit 647c56a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
laravel-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- name: Checkout
Expand All @@ -18,13 +18,13 @@ jobs:
ref: ${{ github.head_ref }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
Expand Down
3 changes: 1 addition & 2 deletions tests/Feature/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Tests\Feature;

use App\Models\User;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

Expand All @@ -28,7 +27,7 @@ public function test_users_can_authenticate_using_the_login_screen()
]);

$this->assertAuthenticated();
$response->assertRedirect(RouteServiceProvider::HOME);
$response->assertRedirect();
}

public function test_users_can_not_authenticate_with_invalid_password()
Expand Down

0 comments on commit 647c56a

Please sign in to comment.