Skip to content
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

Problem with unit testing. Clean Pyro install on XAMPP and Homestead / Windows #4697

Closed
vargvinter opened this issue Nov 27, 2017 · 7 comments

Comments

@vargvinter
Copy link

I am unable to run tests.

It returns:

ReflectionException: Class Anomaly\TestModule\TestModule does not exists

Problem occurs on XAMPP and Homestead as well.
Thread on the official forum: https://pyrocms.com/forum/channels/general/how-to-configure-the-test-environment-in-pyrocms-vagranthomestead/

@Piterden
Copy link
Contributor

Do you have the anomaly/test-module package?

@vargvinter
Copy link
Author

C:\xampp\htdocs\pyrocms> composer require anomaly/test-module --dev

Throws:

  [InvalidArgumentException]
  Could not find package anomaly/test-module at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

@Piterden
Copy link
Contributor

What about php artisan make:addon anomaly.module.test?

@vargvinter
Copy link
Author

Done.
Then php artisan addon:install anomaly.module.test

After phpunit run bunch of:

ReflectionException: Class Anomaly\TestPlugin\TestPlugin does not exist

@Piterden
Copy link
Contributor

Piterden commented Nov 27, 2017

php artisan make:addon anomaly.plugin.test

Did you have some logical test in school?

UPD ^

Only modules and extensions should be installed.

@vargvinter
Copy link
Author

All done.
Tests work.
Thanks.

Shouldn't it be in docs?

@fryiee
Copy link
Contributor

fryiee commented Jan 26, 2018

This isn't a fix btw, you just created a blank addon that had the same namespace in core that mimicks the test addon in vendor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants