Skip to content

Commit cee0bda

Browse files
committed
Merge branch 'develop' into feature/v2.1.0
2 parents 4c43abf + a08ad3b commit cee0bda

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)