We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4c43abf + a08ad3b commit cee0bdaCopy full SHA for cee0bda
backend/tests/Unit/Infrastructures/Models/SocialAccountTest.php
@@ -0,0 +1,23 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace Tests\Unit\Infrastructures\Models;
6
7
+use App\Infrastructures\Models\SocialAccount;
8
+use App\Infrastructures\Models\User;
9
+use Illuminate\Foundation\Testing\RefreshDatabase;
10
+use Tests\TestCase;
11
12
+final class SocialAccountTest extends TestCase
13
+{
14
+ use RefreshDatabase;
15
16
+ /** @test */
17
+ public function it_has_many_users(): void
18
+ {
19
+ $socialAccount = SocialAccount::factory()->for(User::factory())->create();
20
21
+ $this->assertTrue($socialAccount->user()->exists());
22
+ }
23
+}
0 commit comments