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
Hi everyone,
I'm trying to test Event::create but I'm In stuck. If I mock It with
$this->mock(\Spatie\GoogleCalendar\Event::class, function ($mock) { $mock->shouldReceive('create') ->once() ->with([ 'name' => 'Fake name', 'startDateTime' => '2021-01-22 09:00:00.0 UTC (+00:00)', 'endDateTime' => '2021-01-22 10:00:00.0 UTC (+00:00)', ], $googleCalendarId); });
I receive a 500 error because "service-account-credentials.json" does not exist.
Probably I have to mock some other class but there is a maze of dependencies... did someone can help me?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
I'm trying to test Event::create but I'm In stuck. If I mock It with
$this->mock(\Spatie\GoogleCalendar\Event::class, function ($mock) { $mock->shouldReceive('create') ->once() ->with([ 'name' => 'Fake name', 'startDateTime' => '2021-01-22 09:00:00.0 UTC (+00:00)', 'endDateTime' => '2021-01-22 10:00:00.0 UTC (+00:00)', ], $googleCalendarId); });
I receive a 500 error because "service-account-credentials.json" does not exist.
Probably I have to mock some other class but there is a maze of dependencies... did someone can help me?
Beta Was this translation helpful? Give feedback.
All reactions