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 745be08 commit e385f44Copy full SHA for e385f44
tests/RelationsTest.php
@@ -337,8 +337,6 @@ public function testBelongsToManyCustom(): void
337
$this->assertArrayHasKey('groups', $user->getAttributes());
338
339
// Assert they are attached
340
- $this->assertContains($group->_id, $user->groups->pluck('_id')->toArray());
341
- $this->assertContains($user->_id, $group->users->pluck('_id')->toArray());
342
$this->assertEquals($group->_id, $user->groups()->first()->_id);
343
$this->assertEquals($user->_id, $group->users()->first()->_id);
344
}
0 commit comments