create(); UserAffiliation::factory()->create(['user_id' => $user->id]); $this->assertCount(1, $user->refresh()->affiliations); } }