This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

chris10207
chris10207

I just can't run any php unit test on my octobercms installation. The project is dating from more than 1 year now, and I guess the system updates does not come up with the required OC test files ?

Fatal error: Class 'PluginTestCase' not found in /Users/xyz/Sites/project/site/plugins/author/plugin/tests/PluginTest.php on line 11

I copy and paste the folder /tests from a new fresh OC installation, but that does not do the trick.

Anyone faced this issue ? Thanks

godkin.mo
godkin.mo

You may have same file miss. I also have the same problem and I have solved it.

Download the missing in: https://github.com/octobercms/october

  • project_file/tests/*
  • project_file/composer.json
  • porject_file/config/testing // need to auto include the file

and run the command

composer dumpautoload

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.