We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff1d226 commit f6048eeCopy full SHA for f6048ee
tests/MessagableTraitTest.php
@@ -3,6 +3,7 @@
3
namespace Cmgmyr\Messenger\Test;
4
5
use Carbon\Carbon;
6
+use Cmgmyr\Messenger\Models\Thread;
7
use Cmgmyr\Messenger\Traits\Messagable;
8
use Illuminate\Database\Eloquent\Model as Eloquent;
9
@@ -61,8 +62,8 @@ public function it_should_get_participant_threads()
61
62
$user_2 = $this->faktory->build('participant', ['user_id' => 2]);
63
$thread->participants()->saveMany([$user_1, $user_2]);
64
- $threadsCount = $user->threads->count();
65
- $this->assertEquals(1, $threadsCount);
+ $firstThread = $user->threads->first();
66
+ $this->assertInstanceOf(Thread::class, $firstThread);
67
}
68
69
0 commit comments