assertInstanceOf(ServiceProvider::class, app()->getProvider('Plugins\\Test\\ServiceProvider')); array_map(fn ($file) => unlink($file), glob($pluginsPath.'/*')); rmdir($pluginsPath); rmdir(dirname($pluginsPath)); } }