-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fixed duplicate route creation issue in QuickStartCommand #127
Fixed duplicate route creation issue in QuickStartCommand #127
Conversation
- Add updateApiRoutes() method - Implement logic to check for existing routes - Add QuickStartCommandTest class - Add tests to prevent duplicate route creation
Hello @erhanurgun, Thanks for your proposal, seems like a good idea |
- Add testing environment variables to phpunit.xml - Ensure api.php file exists before running tests - Update QuickStartCommand to create api.php file if not exists - Add proper test environment configuration in TestCase These changes address the "File does not exist" errors in the CI pipeline and ensure a consistent test environment across different database configurations. The updates should improve the reliability of the test suite and make it easier to run tests in various environments.
Hello @GautierDele, Thank you for your feedback. I've reviewed the tests and made some adjustments to address the failing tests. Here's a summary of the changes I've made:
These changes aim to resolve the "File does not exist at path .../routes/api.php" error that was causing the tests to fail. I've pushed these updates to my fork. Could you please pull the changes and run the tests again? If you encounter any issues or have any questions, please let me know, and I'll be happy to assist further. Thank you for your patience and collaboration. Best regards, Screenshots from the tests |
I'm gonna have a quick look later this afternoon in order to test it on my side, thanks for your time |
Thanks @erhanurgun merging ! |
Hello,
I've identified an issue in the QuickStartCommand and created this pull request to address it. Here are the changes I've made:
In
QuickStartCommand.php
:updateApiRoutes()
. This method checks if the 'users' route already exists and only adds it if it doesn't.Added
QuickStartCommandTest.php
:These changes will ensure the command operates more reliably and reduce the likelihood of similar issues occurring in the future.
I'm looking forward to your feedback and review. If you have any questions or suggestions, please don't hesitate to ask.
Thank you!