-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DX] rename unit test controller #29602
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
[DX] rename unit test controller #29602
Conversation
…'t show up in the IDE autocomplete.
Another idea: mark it as |
@nicolas-grekas just tried that and it didn't have the expected result, I've just hit "invalidate caches" to verify this behaviour after a clean inspection of PHPStorm and it still shows up first. It only receives a strike through once it's used in the current file. |
Didn't https://youtrack.jetbrains.com/issue/WI-37750 solve the issue? Can you check if you have the latest phpstorm version? |
@nicolas-grekas I've updated it, it still shows it first. |
Thank you @frankdejonge. |
This PR was merged into the 3.4 branch. Discussion ---------- [DX] rename unit test controller | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? |no | New feature? |no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Whenever I create a new controller the actually needed controller shows up second in the list of auto-completion. The first suggestion is a class defined in the test and should not ever be extended in the application. This PR renames it so that doesn't happen anymore. Example of the autocomplete issue: <img width="748" alt="screenshot 2018-12-14 at 10 33 26" src="https://user-images.githubusercontent.com/534693/49995500-a09dca80-ff8c-11e8-80b5-18890ff058b1.png"> Commits ------- d4e426c Renamed test controller from Controller to TestController so it doesn't show up in the IDE autocomplete.
Whenever I create a new controller the actually needed controller shows up second in the list of auto-completion. The first suggestion is a class defined in the test and should not ever be extended in the application. This PR renames it so that doesn't happen anymore.
Example of the autocomplete issue: