Skip to content

Commit

Permalink
fix syle
Browse files Browse the repository at this point in the history
  • Loading branch information
juniohyago committed Jul 2, 2021
1 parent e59a8e5 commit 26e77f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/HybridRelationsTest.php
Expand Up @@ -227,15 +227,15 @@ public function testHybridSync()
$this->assertEquals(2, $client->usersMysql->count());

// sync 2 Clients
$user->clients()->sync([$client->_id, $otherClient->_id ]);
$user->clients()->sync([$client->_id, $otherClient->_id]);
$user = MysqlUser::find($user->id);
$this->assertEquals(2, $user->clients->count());
// Sync 1 Client
$user->clients()->sync([$client->_id]);
$user = MysqlUser::find($user->id);
$this->assertEquals(1, $user->clients->count());
// Sync 2 Clients again
$user->clients()->sync([$client->_id, $otherClient->_id ]);
$user->clients()->sync([$client->_id, $otherClient->_id]);
$user = MysqlUser::find($user->id);
$this->assertEquals(2, $user->clients->count());
}
Expand Down

0 comments on commit 26e77f6

Please sign in to comment.