-
Notifications
You must be signed in to change notification settings - Fork 3
[212] novatest user import #213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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.
refs: #212