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
Then you can simply write tests and assert requested data to the Telegram server by Http::fake():
publicfunctiontestSample()
{
Http::fake();
// your actions that send request to Telegram server
Http::assertSent(function (Request$request) {
// $request->url() === 'https://fake.telegram.org',// $request->body() === expected data to be sent to telegram server
});
}
Please guide me on how to write test for this in laravel
The text was updated successfully, but these errors were encountered: