1. When running the Lighthouse test cases, an error occurred: Class ‘Overtrue\LaravelVersionable\ServiceProvider’ not found. See Figure 1.

PS E:\wwwroot\object> ./vendor/bin/phpunit .\Modules\ThemeStore\Tests\Functional\GraphQl\OnlineStoreThemeGraphQlApiTest.php
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.
E 1 / 1 (100%)
Time: 350 ms, Memory: 30.00 MB
There was 1 error:
1) Modules\ThemeStore\Tests\Functional\GraphQl\OnlineStoreThemeGraphQlApiTest::testGetThemeById
Error: Class 'Overtrue\LaravelVersionable\ServiceProvider' not found
E:\wwwroot\object\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php:208
E:\wwwroot\object\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php:144
E:\wwwroot\object\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php:61
E:\wwwroot\object\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:593
E:\wwwroot\object\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\RegisterProviders.php:17
E:\wwwroot\object\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:219
E:\wwwroot\object\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php:320
E:\wwwroot\object\tests\CreatesApplication.php:18
E:\wwwroot\object\vendor\laravel\framework\src\Illuminate\Foundation\Testing\TestCase.php:102
E:\wwwroot\object\vendor\laravel\framework\src\Illuminate\Foundation\Testing\TestCase.php:81
E:\wwwroot\object\Modules\ThemeStore\Tests\Functional\GraphQl\OnlineStoreThemeGraphQlApiTest.php:76
phpvfscomposer://E:\wwwroot\object\vendor\phpunit\phpunit\phpunit:60
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
PS E:\wwwroot\object>
2. Searched for the class Overtrue\LaravelVersionable\ServiceProvider in the IDE, but it was not found. See Figure 2.

3. Searched for the code LaravelVersionable in the project and found that the file /bootstrap/cache/packages.phpunit.php contains: Overtrue\\LaravelVersionable\\ServiceProvider. See Figure 3.

4. Checked the directory /vendor/overtrue, and the folder laravel-versionable does not exist. This confirms that the package is not installed, yet it is still declared in the cache. See Figure 4.

5. Viewed the existing cache files under /bootstrap/cache, as shown in Figure 5.

6. The cause is likely a previous local Git reset, which resulted in an incorrect cache. The cache should not have been committed to Git in the first place. I ultimately decided to manually delete the cache files under the /bootstrap/cache directory. I ran the tests again, and they passed. See Figure 6.

PS E:\wwwroot\object> ./vendor/bin/phpunit .\Modules\ThemeStore\Tests\Functional\GraphQl\OnlineStoreThemeGraphQlApiTest.php
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.
. 1 / 1 (100%)
Time: 9.42 seconds, Memory: 60.00 MB
OK (1 test, 14 assertions)
PS E:\wwwroot\object>
