PASS Tests\Unit\ExampleTest ✓ that true is true 0.01s FAIL Tests\Feature\Api\AdminTest ✓ non admin cannot access admin routes 3.86s ⨯ admin can view all users 0.69s ⨯ admin can view user details 0.07s ⨯ admin can manage user roles 0.09s ⨯ admin can suspend user 0.07s ⨯ admin can view all plans 0.03s ⨯ admin can create plan 0.24s ⨯ admin can update plan 0.05s ⨯ admin can manage plan features 0.04s ⨯ admin can view templates 0.04s ✓ admin can create template 0.08s ⨯ admin can view revenue reports 0.05s ⨯ admin can view user reports 0.44s ⨯ admin can view feature usage 0.11s ⨯ staff can manage templates 0.09s ✓ staff cannot manage users 0.06s ✓ staff cannot manage plans 0.06s PASS Tests\Feature\Api\AuthTest ✓ user can register 0.86s ✓ user cannot register with invalid email 0.03s ✓ user cannot register with existing email 0.02s ✓ user can login 0.85s ✓ user cannot login with wrong password 1.07s ✓ user cannot login with nonexistent email 0.24s ✓ user can logout 0.02s ✓ unauthenticated user cannot access protected routes 0.02s ✓ authenticated user can access protected routes 0.02s FAIL Tests\Feature\Api\PaymentTest ⨯ user can initiate payment ⨯ user can check payment status ⨯ user cannot view others payment ⨯ user can view payment history ⨯ payment can be verified ⨯ subscription is activated on successful payment ⨯ user can refund payment ⨯ payment transaction id is unique ⨯ coupon applies discount to payment FAIL Tests\Feature\Api\PortfolioTest ⨯ user can create portfolio ⨯ user can list own portfolios ⨯ user can view own portfolio ⨯ user cannot view others portfolio ⨯ user can update own portfolio ⨯ user cannot update others portfolio ⨯ user can delete own portfolio ⨯ user can publish portfolio ⨯ user can duplicate portfolio ⨯ user can get available templates ⨯ portfolio slug is unique ⨯ portfolio auto generates qr code on publish FAIL Tests\Feature\Api\QrCodeTest ⨯ user can get qr code metadata ⨯ user can download qr code png ⨯ user can download qr code svg ⨯ qr scan is tracked ⨯ user can view qr analytics ⨯ qr code generated on portfolio publish ⨯ qr code has unique short code ⨯ user can access portfolio via qr code url FAIL Tests\Feature\Api\ResumeTest ✓ user can create resume 0.09s ⨯ user can list own resumes 0.03s ⨯ user can view own resume 0.03s ⨯ user cannot view others resume 0.03s ⨯ user can update own resume 0.03s ⨯ user can publish resume 0.02s ⨯ user can download resume pdf 0.03s ⨯ user can duplicate resume 0.03s ⨯ user can create multiple resume versions 0.05s ⨯ user can update resume sections 0.02s FAIL Tests\Feature\Api\SubscriptionTest ⨯ user can view available plans ⨯ plans include features ⨯ user can subscribe to plan ⨯ user can view own subscriptions ⨯ user can view active subscription ⨯ user with no active subscription gets 404 ⨯ user can cancel subscription ⨯ user can check feature access ⨯ user cannot access feature without subscription ⨯ subscription can apply coupon on creation ⨯ subscription entitlements are synced FAIL Tests\Feature\Auth\AuthenticationTest ✓ login screen can be rendered 0.07s ⨯ users can authenticate using the login screen 0.32s ✓ users can not authenticate with invalid password 0.04s ⨯ users can logout 0.04s PASS Tests\Feature\Auth\EmailVerificationTest ✓ email verification screen can be rendered 0.57s ✓ email can be verified 0.71s ✓ email is not verified with invalid hash 0.15s FAIL Tests\Feature\Auth\PasswordConfirmationTest ✓ confirm password screen can be rendered 0.92s ⨯ password can be confirmed 0.03s ⨯ password is not confirmed with invalid password 0.03s FAIL Tests\Feature\Auth\PasswordResetTest ✓ reset password link screen can be rendered 1.21s ⨯ reset password link can be requested 0.03s ⨯ reset password screen can be rendered 0.03s ⨯ password can be reset with valid token 0.03s FAIL Tests\Feature\Auth\PasswordUpdateTest ⨯ password can be updated 0.03s ⨯ correct password must be provided to update password 0.04s FAIL Tests\Feature\Auth\RegistrationTest ✓ registration screen can be rendered 2.02s ⨯ new users can register 0.03s FAIL Tests\Feature\ExampleTest ⨯ the application returns a successful response 0.04s FAIL Tests\Feature\ProfileTest ✓ profile page is displayed 7.43s ⨯ profile information can be updated 0.02s ⨯ email verification status is unchanged when the email address is un… 0.05s ⨯ user can delete their account 0.04s ⨯ correct password must be provided to delete account 0.03s FAIL Tests\Feature\UserJourneyTest ⨯ complete user journey with subscription 0.72s ⨯ user can cancel subscription 0.02s ⨯ free user limited portfolio count 0.02s ⨯ subscription auto renews on expiry 0.02s ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can view all users Failed asserting that an array has the key 'subscription_status'. at tests\Feature\Api\AdminTest.php:50 46▕ $response = $this->actingAs($this->admin) 47▕ ->getJson('/api/admin/users'); 48▕ 49▕ $response->assertStatus(200) ➜ 50▕ ->assertJsonStructure([ 51▕ 'data' => [ 52▕ '*' => [ 53▕ 'id', 54▕ 'name', ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can view user details Failed asserting that an array has the key 'portfolios_count'. at tests\Feature\Api\AdminTest.php:80 76▕ 'id' => $testUser->id, 77▕ 'name' => $testUser->name, 78▕ 'email' => $testUser->email, 79▕ ]) ➜ 80▕ ->assertJsonStructure([ 81▕ 'portfolios_count', 82▕ 'resumes_count', 83▕ 'subscription', 84▕ 'activity', ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can manage user roles Expected response status code [200] but received 404. Failed asserting that 404 is identical to 200. at tests\Feature\Api\AdminTest.php:97 93▕ ->putJson("/api/admin/users/{$testUser->id}/roles", [ 94▕ 'roles' => ['staff'], 95▕ ]); 96▕ ➜ 97▕ $response->assertStatus(200); 98▕ 99▕ $testUser->refresh(); 100▕ $this->assertTrue($testUser->hasRole('staff')); 101▕ } ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can suspend user Expected response status code [200] but received 404. Failed asserting that 404 is identical to 200. at tests\Feature\Api\AdminTest.php:110 106▕ 107▕ $response = $this->actingAs($this->admin) 108▕ ->postJson("/api/admin/users/{$testUser->id}/suspend"); 109▕ ➜ 110▕ $response->assertStatus(200); 111▕ 112▕ $testUser->refresh(); 113▕ $this->assertTrue($testUser->is_suspended); 114▕ } ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can v… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can create plan Expected response status code [201] but received 422. Failed asserting that 422 is identical to 201. The following errors occurred during the last request: { "message": "The price field must be an integer. (and 4 more errors)", "errors": { "price": [ "The price field must be an integer." ], "duration_days": [ "The duration days field is required." ], "features.0": [ "The selected features.0 is invalid." ], "features.1": [ "The selected features.1 is invalid." ], "features.2": [ "The selected features.2 is invalid." ] } } at tests\Feature\Api\AdminTest.php:150 146▕ 'billing_cycle' => 'monthly', 147▕ 'features' => ['qr_codes', 'analytics', 'custom_domain'], 148▕ ]); 149▕ ➜ 150▕ $response->assertStatus(201) 151▕ ->assertJsonStructure(['id', 'name', 'slug']); 152▕ 153▕ $this->assertDatabaseHas('plans', [ 154▕ 'name' => 'Premium Plus', ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can u… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can m… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can v… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can view revenue reports Failed asserting that an array has the key 'total_revenue'. at tests\Feature\Api\AdminTest.php:236 232▕ $response = $this->actingAs($this->admin) 233▕ ->getJson('/api/admin/reports/revenue?period=month'); 234▕ 235▕ $response->assertStatus(200) ➜ 236▕ ->assertJsonStructure([ 237▕ 'total_revenue', 238▕ 'active_subscriptions', 239▕ 'new_subscriptions', 240▕ 'cancelled_subscriptions', ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can view user reports Expected response status code [200] but received 500. Failed asserting that 500 is identical to 200. at tests\Feature\Api\AdminTest.php:254 250▕ 251▕ $response = $this->actingAs($this->admin) 252▕ ->getJson('/api/admin/reports/users?period=month'); 253▕ ➜ 254▕ $response->assertStatus(200) 255▕ ->assertJsonStructure([ 256▕ 'total_users', 257▕ 'new_users', 258▕ 'active_users', ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > admin can view feature usage Expected response status code [200] but received 404. Failed asserting that 404 is identical to 200. at tests\Feature\Api\AdminTest.php:270 266▕ { 267▕ $response = $this->actingAs($this->admin) 268▕ ->getJson('/api/admin/reports/features'); 269▕ ➜ 270▕ $response->assertStatus(200) 271▕ ->assertJsonStructure([ 272▕ 'features' => [ 273▕ '*' => [ 274▕ 'name', ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\AdminTest > staff can manage templates Expected response status code [200] but received 403. Failed asserting that 403 is identical to 200. at tests\Feature\Api\AdminTest.php:288 284▕ { 285▕ $response = $this->actingAs($this->staff) 286▕ ->getJson('/api/admin/templates'); 287▕ ➜ 288▕ $response->assertStatus(200); 289▕ } 290▕ 291▕ public function test_staff_cannot_manage_users() 292▕ { ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PaymentTest > user can… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PaymentTest > user can… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PaymentTest > user cann… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PaymentTest > user can… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PaymentTest > payment c… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PaymentTest > subscript… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PaymentTest > user can… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PaymentTest > payment t… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PaymentTest > coupon ap… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > user ca… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > user ca… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > user ca… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > user ca… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > user ca… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > user ca… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > user ca… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > user ca… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > user ca… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > user ca… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > portfol… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\PortfolioTest > portfol… BadMethodCallException Call to undefined method App\Models\Template::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\QrCodeTest > user can g… BadMethodCallException Call to undefined method App\Models\Portfolio::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\QrCodeTest > user can d… BadMethodCallException Call to undefined method App\Models\Portfolio::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\QrCodeTest > user can d… BadMethodCallException Call to undefined method App\Models\Portfolio::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\QrCodeTest > qr scan is… BadMethodCallException Call to undefined method App\Models\Portfolio::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\QrCodeTest > user can v… BadMethodCallException Call to undefined method App\Models\Portfolio::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\QrCodeTest > qr code ge… BadMethodCallException Call to undefined method App\Models\Portfolio::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\QrCodeTest > qr code ha… BadMethodCallException Call to undefined method App\Models\Portfolio::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\QrCodeTest > user can a… BadMethodCallException Call to undefined method App\Models\Portfolio::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\ResumeTest > user can l… BadMethodCallException Call to undefined method App\Models\Resume::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\ResumeTest > user can v… BadMethodCallException Call to undefined method App\Models\Resume::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\ResumeTest > user canno… BadMethodCallException Call to undefined method App\Models\Resume::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\ResumeTest > user can u… BadMethodCallException Call to undefined method App\Models\Resume::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\ResumeTest > user can p… BadMethodCallException Call to undefined method App\Models\Resume::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\ResumeTest > user can d… BadMethodCallException Call to undefined method App\Models\Resume::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\ResumeTest > user can d… BadMethodCallException Call to undefined method App\Models\Resume::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\ResumeTest > user can c… BadMethodCallException Call to undefined method App\Models\Resume::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\ResumeTest > user can u… BadMethodCallException Call to undefined method App\Models\Resume::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > user… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > plan… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > user… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > user… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > user… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > user… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > user… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > user… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > user… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > subs… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Api\SubscriptionTest > subs… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Auth\AuthenticationTest > users can authenticate us… The user is not authenticated Failed asserting that false is true. at tests\Feature\Auth\AuthenticationTest.php:29 25▕ 'email' => $user->email, 26▕ 'password' => 'password', 27▕ ]); 28▕ ➜ 29▕ $this->assertAuthenticated(); 30▕ $response->assertRedirect(route('dashboard', absolute: false)); 31▕ } 32▕ 33▕ public function test_users_can_not_authenticate_with_invalid_password(): void ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Auth\AuthenticationTest > users can logout The user is authenticated Failed asserting that true is false. at tests\Feature\Auth\AuthenticationTest.php:51 47▕ $user = User::factory()->create(); 48▕ 49▕ $response = $this->actingAs($user)->post('/logout'); 50▕ ➜ 51▕ $this->assertGuest(); 52▕ $response->assertRedirect('/'); 53▕ } 54▕ } 55▕ ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Auth\PasswordConfirmationTest > password can be con… Expected response status code [201, 301, 302, 303, 307, 308] but received 419. Failed asserting that false is true. at tests\Feature\Auth\PasswordConfirmationTest.php:30 26▕ $response = $this->actingAs($user)->post('/confirm-password', [ 27▕ 'password' => 'password', 28▕ ]); 29▕ ➜ 30▕ $response->assertRedirect(); 31▕ $response->assertSessionHasNoErrors(); 32▕ } 33▕ 34▕ public function test_password_is_not_confirmed_with_invalid_password(): void ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Auth\PasswordConfirmationTest > password is not con… Session is missing expected key [errors]. Failed asserting that false is true. at tests\Feature\Auth\PasswordConfirmationTest.php:42 38▕ $response = $this->actingAs($user)->post('/confirm-password', [ 39▕ 'password' => 'wrong-password', 40▕ ]); 41▕ ➜ 42▕ $response->assertSessionHasErrors(); 43▕ } 44▕ } 45▕ ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Auth\PasswordResetTest > reset password link can be… The expected [Illuminate\Auth\Notifications\ResetPassword] notification was not sent. Failed asserting that false is true. at vendor\laravel\framework\src\Illuminate\Support\Testing\Fakes\NotificationFake.php:89 85▕ if (is_numeric($callback)) { 86▕ return $this->assertSentToTimes($notifiable, $notification, $callback); 87▕ } 88▕ ➜ 89▕ PHPUnit::assertTrue( 90▕ $this->sent($notifiable, $notification, $callback)->count() > 0, 91▕ "The expected [{$notification}] notification was not sent." 92▕ ); 93▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Testing\Fakes\NotificationFake.php:89 2 vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:363 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Auth\PasswordResetTest > reset password screen can… The expected [Illuminate\Auth\Notifications\ResetPassword] notification was not sent. Failed asserting that false is true. at vendor\laravel\framework\src\Illuminate\Support\Testing\Fakes\NotificationFake.php:89 85▕ if (is_numeric($callback)) { 86▕ return $this->assertSentToTimes($notifiable, $notification, $callback); 87▕ } 88▕ ➜ 89▕ PHPUnit::assertTrue( 90▕ $this->sent($notifiable, $notification, $callback)->count() > 0, 91▕ "The expected [{$notification}] notification was not sent." 92▕ ); 93▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Testing\Fakes\NotificationFake.php:89 2 vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:363 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Auth\PasswordResetTest > password can be reset with… The expected [Illuminate\Auth\Notifications\ResetPassword] notification was not sent. Failed asserting that false is true. at vendor\laravel\framework\src\Illuminate\Support\Testing\Fakes\NotificationFake.php:89 85▕ if (is_numeric($callback)) { 86▕ return $this->assertSentToTimes($notifiable, $notification, $callback); 87▕ } 88▕ ➜ 89▕ PHPUnit::assertTrue( 90▕ $this->sent($notifiable, $notification, $callback)->count() > 0, 91▕ "The expected [{$notification}] notification was not sent." 92▕ ); 93▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Testing\Fakes\NotificationFake.php:89 2 vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:363 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Auth\PasswordUpdateTest > password can be updated Expected response status code [201, 301, 302, 303, 307, 308] but received 419. Failed asserting that false is true. at tests\Feature\Auth\PasswordUpdateTest.php:29 25▕ ]); 26▕ 27▕ $response 28▕ ->assertSessionHasNoErrors() ➜ 29▕ ->assertRedirect('/profile'); 30▕ 31▕ $this->assertTrue(Hash::check('new-password', $user->refresh()->password)); 32▕ } 33▕ ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Auth\PasswordUpdateTest > correct password must be… Session is missing expected key [errors]. Failed asserting that false is true. at tests\Feature\Auth\PasswordUpdateTest.php:48 44▕ 'password_confirmation' => 'new-password', 45▕ ]); 46▕ 47▕ $response ➜ 48▕ ->assertSessionHasErrorsIn('updatePassword', 'current_password') 49▕ ->assertRedirect('/profile'); 50▕ } 51▕ } 52▕ ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\Auth\RegistrationTest > new users can register The user is not authenticated Failed asserting that false is true. at tests\Feature\Auth\RegistrationTest.php:28 24▕ 'password' => 'password', 25▕ 'password_confirmation' => 'password', 26▕ ]); 27▕ ➜ 28▕ $this->assertAuthenticated(); 29▕ $response->assertRedirect(route('dashboard', absolute: false)); 30▕ } 31▕ } 32▕ ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\ExampleTest > the application returns a successful… Expected response status code [200] but received 302. Failed asserting that 302 is identical to 200. at tests\Feature\ExampleTest.php:17 13▕ public function test_the_application_returns_a_successful_response(): void 14▕ { 15▕ $response = $this->get('/'); 16▕ ➜ 17▕ $response->assertStatus(200); 18▕ } 19▕ } 20▕ ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\ProfileTest > profile information can be updated Expected response status code [201, 301, 302, 303, 307, 308] but received 419. Failed asserting that false is true. at tests\Feature\ProfileTest.php:37 33▕ ]); 34▕ 35▕ $response 36▕ ->assertSessionHasNoErrors() ➜ 37▕ ->assertRedirect('/profile'); 38▕ 39▕ $user->refresh(); 40▕ 41▕ $this->assertSame('Test User', $user->name); ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\ProfileTest > email verification status is unchange… Expected response status code [201, 301, 302, 303, 307, 308] but received 419. Failed asserting that false is true. at tests\Feature\ProfileTest.php:59 55▕ ]); 56▕ 57▕ $response 58▕ ->assertSessionHasNoErrors() ➜ 59▕ ->assertRedirect('/profile'); 60▕ 61▕ $this->assertNotNull($user->refresh()->email_verified_at); 62▕ } 63▕ ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\ProfileTest > user can delete their account Expected response status code [201, 301, 302, 303, 307, 308] but received 419. Failed asserting that false is true. at tests\Feature\ProfileTest.php:76 72▕ ]); 73▕ 74▕ $response 75▕ ->assertSessionHasNoErrors() ➜ 76▕ ->assertRedirect('/'); 77▕ 78▕ $this->assertGuest(); 79▕ $this->assertNull($user->fresh()); 80▕ } ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\ProfileTest > correct password must be provided to… Session is missing expected key [errors]. Failed asserting that false is true. at tests\Feature\ProfileTest.php:94 90▕ 'password' => 'wrong-password', 91▕ ]); 92▕ 93▕ $response ➜ 94▕ ->assertSessionHasErrorsIn('userDeletion', 'password') 95▕ ->assertRedirect('/profile'); 96▕ 97▕ $this->assertNotNull($user->fresh()); 98▕ } ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\UserJourneyTest > complete user journey with subscr… Failed asserting that an array has the key 'data'. at tests\Feature\UserJourneyTest.php:46 42▕ $plansResponse = $this->actingAs($user) 43▕ ->getJson('/api/plans'); 44▕ 45▕ $plansResponse->assertStatus(200) ➜ 46▕ ->assertJsonStructure([ 47▕ 'data' => [ 48▕ '*' => ['id', 'name', 'price', 'features'] 49▕ ] 50▕ ]); ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\UserJourneyTest > user can… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\UserJourneyTest > free user… BadMethodCallException Call to undefined method App\Models\Portfolio::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Feature\UserJourneyTest > subscript… BadMethodCallException Call to undefined method App\Models\Plan::factory() at vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 63▕ * @throws \BadMethodCallException 64▕ */ 65▕ protected static function throwBadMethodCallException($method) 66▕ { ➜ 67▕ throw new BadMethodCallException(sprintf( 68▕ 'Call to undefined method %s::%s()', static::class, $method 69▕ )); 70▕ } 71▕ } 1 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67 2 vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36 Tests: 81 failed, 24 passed (100 assertions) Duration: 26.03s