-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Drupal\Tests\module_name\TestSite namespace not found #124
Comments
This seems like a duplicate of #121 if |
Maybe not a duplicate. #121 should already be working in phpstan-drupal's autoloader... But TestSite wouldn't work at all according to https://github.com/mglaman/phpstan-drupal/blob/master/src/Drupal/DrupalAutoloader.php#L245. I'm not sure if the logic around manually specifying the directories is necessary at all. Shouldn't specifying the following be enough to support all directories underneath tests/src for modules?
I think that this probably should be moved to phpstan-drupal project. |
The I think I have enough direction to create a PR for this. |
@mradcliffe ah I'll roll a release for that. FYI PHPStan now has a built in junit formatter, too. |
How is drupal-check installed?
Environment:
Describe the bug
Class not found underneath
tests/src/TestSite
directory asnamespace Drupal\Tests\cck_select_other\TestSite
. Namespace resolution suggests that this should resolve.Drupalci runs and passes the Nightwatch test that uses this class.
Console output
Note I couldn't run with -vvv because I have a bunch of modules in various states sitting in
/modules
directory as part of my preferred work flow for hacking on contrib. modules.The text was updated successfully, but these errors were encountered: