2.x - databases

This commit is contained in:
Saeed Vaziry
2024-09-29 00:30:04 +02:00
parent 32993025de
commit e4fed24498
62 changed files with 802 additions and 237 deletions

View File

@ -78,7 +78,7 @@ public function test_send(): void
Http::fake();
$provider->send($channel, new TestNotification());
$provider->send($channel, new TestNotification);
Http::assertSent(function (Request $request) {
return $request->body() === '{"content":"Hello"}';

View File

@ -76,7 +76,7 @@ public function test_send(): void
Mail::fake();
$provider->send($channel, new TestNotification());
$provider->send($channel, new TestNotification);
Mail::assertSent(NotificationMail::class);
}

View File

@ -78,7 +78,7 @@ public function test_send(): void
Http::fake();
$provider->send($channel, new TestNotification());
$provider->send($channel, new TestNotification);
Http::assertSent(function (Request $request) {
return $request->body() === '{"text":"Hello"}';

View File

@ -92,7 +92,7 @@ public function test_send(): void
Http::fake();
$provider->send($channel, new TestNotification());
$provider->send($channel, new TestNotification);
Http::assertSent(function (Request $request) {
if ($request->url() === 'https://api.telegram.org/botxxxxx/sendMessage') {