Closed
Description
Preconditions (*)
- Cloned
magento/magento2
repository (without changes) - Installed Composer dependencies
Steps to reproduce (*)
- Configure and run Integration Tests
Expected result (*)
- Integration Tests should pass
Actual result (*)
- Randomly you get error
Error: Call to a member function findFile() on array
(/var/www/html/lib/internal/Magento/Framework/Code/Generator/DefinedClasses.php:59
)
Comments
Actual source of issue is in: \Magento\Framework\Autoload\AutoloaderRegistry::getAutoloader
For some cases just
composer dump-autoload
helps, but it's not always the case.