Skip to content

Default tests fail with strict mode enabled #1161

@entity

Description

@entity
  • Jetstream Version: 2.12.3
  • Jetstream Stack: Inertia
  • Uses Teams: yes
  • Laravel Version: 9.35.1
  • PHP Version: 8.1.10
  • Database Driver & Version: MySQL 8

Description:

With Laravels new Model::shouldBeStrict(); mode, it seems it has caused the default tests to fail with the following error:

The attribute [current_team_id] either does not exist or was not retrieved for model [App\Models\User].

This issue only applies when it's enabled, and I have a feeling this may be a bug with the new strict mode in general.

Steps To Reproduce:

  1. Create a fresh Jetstream application.
  2. Add Model::shouldBeStrict(); to the AppServiceProvider.
  3. Run php artisan test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions