Skip to content

Nova tests fail due to change to inertia. #480

Closed
@mikebronner

Description

@mikebronner

Describe the bug
Several tests are failing due to Nova 5 changes:

BadMethodCallException: Method Illuminate\Http\Request::inertia does not exist.

Need to go through the failing tests to see what the fix is. This may no longer be testable in the same way, if there is no longer a Nova JSON API. Any help with this would be greatly appreciated!

The following tests are affected:

  • GeneaLabs\LaravelModelCaching\Tests\Feature\Nova\BelongsToManyTest::testAttachRelationFlushesCache
  • GeneaLabs\LaravelModelCaching\Tests\Feature\Nova\BelongsToManyTest::testDetachRelationFlushesCache
  • GeneaLabs\LaravelModelCaching\Tests\Feature\Nova\BelongsToManyTest::testUpdateRelationFlushesCache
  • GeneaLabs\LaravelModelCaching\Tests\Feature\Nova\BelongsToManyTest::testDeleteRelationFlushesCache
  • GeneaLabs\LaravelModelCaching\Tests\Feature\Nova\CreateTest::testCreateFlushesCacheForModel
  • GeneaLabs\LaravelModelCaching\Tests\Feature\Nova\DeleteTest::testDeleteFlushesCacheForModel
  • GeneaLabs\LaravelModelCaching\Tests\Feature\Nova\UpdateTest::testUpdateFlushesCacheForModel

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions