mocking
#33
Replies: 1 comment
-
|
In my projects, I usually add a Container Binding to my use Spatie\Browsershot\Browsershot;
use Wnx\SidecarBrowsershot\BrowsershotLambda;
if ($this->app->environment(['production'])) {
$this->app->bind(Browsershot::class, BrowsershotLambda::class);
}My tests then actually run Browsershot. I don't use Mocks that often, but I think the issue could be that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone mocked the browshershot lambda class, I am attempted a partial mock but it returns
Static method Mockery_2_Wnx_SidecarBrowsershot_BrowsershotLambda::html() does not exist on this mock objecthere is my code to make the mock
$this->partialMock(BrowsershotLambda::class)->shouldReceive('saveToS3')->andReturn(True);Beta Was this translation helpful? Give feedback.
All reactions