You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2025. It is now read-only.
I have some class called InvoiceDownloadService. This class is passed to a controller and injected automatically by laravel.
I prepared fake class for dusk test like below:
but it results with error: ERROR: Call to undefined method InvoiceDownloadService::swap() {"exception":"[object] (Error(code: 0): Call to undefined method InvoiceDownloadService::swap() at vendor/noeldemartin/laravel-dusk-mocking/src/Driver.php:77)
As i'm understand you comment here #31 (comment) it should just works. But it don't.
It is possible or not? Or your comment are for serviceProviders who extends ServiceProvider (Laravel) only?