feat: user notification channels (monicahq/chandler#43)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit\Models;
|
||||
|
||||
use Tests\TestCase;
|
||||
use App\Models\UserNotificationSent;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class UserNotificationSentTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
/** @test */
|
||||
public function it_belongs_to_one_user_notification_channel()
|
||||
{
|
||||
$sent = UserNotificationSent::factory()->create();
|
||||
|
||||
$this->assertTrue($sent->notificationChannel()->exists());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user