Skip to content

Conversation

@neellii
Copy link

@neellii neellii commented Oct 20, 2025

refs: #212

@DenTray DenTray requested a review from Copilot October 23, 2025 07:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the User model import to Nova test files to support authentication requirements in Nova resource tests.

Key Changes

  • Added User model import statement to the Nova test stub template
  • Updated the NovaTestGenerator to pass the user namespace to the template
  • Regenerated fixture files to reflect the new import

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
stubs/nova_test.blade.php Added User import statement using dynamic user_namespace variable
src/Generators/NovaTestGenerator.php Added user_namespace parameter to template variables using existing getNamespace('models') method
tests/fixtures/NovaTestGeneratorTest/created_resource_test.php Regenerated fixture with User import from RonasIT\Support\Tests\Support\Models namespace
tests/fixtures/CommandTest/nova_test.php Regenerated fixture with User import from RonasIT\Support\Tests\Support\Command\Models namespace
tests/fixtures/CommandTest/subfolder/nova_test.php Regenerated fixture with User import from RonasIT\Support\Tests\Support\Command\Models namespace

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@DenTray DenTray merged commit ff3a96e into master Oct 23, 2025
3 checks passed
@DenTray DenTray deleted the 212-novatest-user-import branch October 23, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants