fix unit tests as well as missing code
API CI/CD / Validate (composer + pint) (push) Successful in 2m7s
API CI/CD / Test (PHPUnit) (push) Failing after 2m23s
API CI/CD / Build frontend assets (push) Successful in 2m18s
API CI/CD / Security audit (push) Successful in 31s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 2m7s
API CI/CD / Test (PHPUnit) (push) Failing after 2m23s
API CI/CD / Build frontend assets (push) Successful in 2m18s
API CI/CD / Security audit (push) Successful in 31s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
This commit is contained in:
@@ -15,6 +15,7 @@ class LandingPageControllerTest extends TestCase
|
||||
public function test_index_returns_admin_dashboard(): void
|
||||
{
|
||||
$user = $this->createUser('admin');
|
||||
$this->actingAs($user, 'api');
|
||||
Sanctum::actingAs($user);
|
||||
|
||||
$response = $this->getJson('/api/v1/landing');
|
||||
@@ -26,6 +27,7 @@ class LandingPageControllerTest extends TestCase
|
||||
public function test_teacher_dashboard_returns_summary(): void
|
||||
{
|
||||
$user = $this->createUser('teacher');
|
||||
$this->actingAs($user, 'api');
|
||||
Sanctum::actingAs($user);
|
||||
|
||||
$response = $this->getJson('/api/v1/landing/teacher');
|
||||
@@ -38,6 +40,7 @@ class LandingPageControllerTest extends TestCase
|
||||
public function test_parent_dashboard_returns_summary(): void
|
||||
{
|
||||
$user = $this->createUser('parent');
|
||||
$this->actingAs($user, 'api');
|
||||
Sanctum::actingAs($user);
|
||||
|
||||
$response = $this->getJson('/api/v1/landing/parent');
|
||||
|
||||
Reference in New Issue
Block a user