Repository navigation
Description:I set up a custom skeleton path as follow: /**
* Get Application base path.
*
* @return string
*/
public static function applicationBasePath()
{
//assigned to variable only for debugging purposes
//if not, __DIR__ variable values in not consinstent when
//inspected in the debugger console
$dir = __DIR__ . "/../../custom_skeleton";
return $dir;
}As soon as I run 1) MyPackage\Tests\Unit\Customer\CustomerTest::test_must_have_a_name
Error: Class 'Api\Extensions\Passwords\PasswordResetServiceProvider' not found
/home/myuser/repos/my-package/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:208
/home/myuser/repos/my-package/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:144
/home/myuser/repos/my-package/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:61
/home/myuser/repos/my-package/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:659
/home/myuser/repos/my-package/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17
/home/myuser/repos/my-package/vendor/orchestra/testbench-core/src/Concerns/CreatesApplication.php:333
/home/myuser/repos/my-package/vendor/orchestra/testbench-core/src/Concerns/CreatesApplication.php:220
/home/myuser/repos/my-package/vendor/orchestra/testbench-core/src/TestCase.php:76
/home/myuser/repos/my-package/vendor/orchestra/testbench-core/src/Concerns/Testing.php:81
/home/myuser/repos/my-package/vendor/orchestra/testbench-core/src/TestCase.php:44
/home/myuser/repos/my-package/tests/TestCase.php:35
phpvfscomposer:///home/myuser/repos/my-package/vendor/phpunit/phpunit/phpunit:97I changed the package and skeleton name for policy, but the error is the same. 'providers' => [
Illuminate\Notifications\NotificationServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Pipeline\PipelineServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class,
Illuminate\Redis\RedisServiceProvider::class,
// Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
Api\Extensions\Passwords\PasswordResetServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class,
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
Laravel\Tinker\TinkerServiceProvider::class,
]I read the troubleshooting section Why Testbench doesn't include any of the App classes. but i don't understand if this is related or not: Steps To Reproduce:
|
Answered by
crynobone
Oct 2, 2023
Replies: 1 comment 4 replies
|
Does your package autoloads your custom skeleton using Composer? |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
circular dependencies occur when both project use it under require and not require-dev