public function testGetContextsDiff()
 {
     $user = new TestUser();
     $user->setId(1);
     $anotherUser = new TestUser();
     $anotherUser->setId(2);
     $thirdUser = new TestUser();
     $thirdUser->setId(3);
     $contexts1 = [$user, $anotherUser, $thirdUser];
     $otherContexts1 = [$user, $thirdUser];
     $result1 = $this->emailActivityManager->getContextsDiff($contexts1, $otherContexts1);
     $this->assertEquals($result1, [$anotherUser]);
     $contexts2 = ["one", "two", "three"];
     $otherContexts2 = ["two", "three"];
     $result2 = $this->emailActivityManager->getContextsDiff($contexts2, $otherContexts2);
     $this->assertEquals($result2, ["one"]);
 }
 public function testGetContextsDiff()
 {
     $user = new TestUser();
     $user->setId(1);
     $anotherUser = new TestUser();
     $anotherUser->setId(2);
     $thirdUser = new TestUser();
     $thirdUser->setId(3);
     $contexts = [$user, $anotherUser, $thirdUser];
     $otherContexts = [$user, $thirdUser];
     $result = $this->manager->getContextsDiff($contexts, $otherContexts);
     $this->assertEquals($result, [$anotherUser]);
     $contexts = ["one", "two", "three"];
     $otherContexts = ["two", "three"];
     $result = $this->manager->getContextsDiff($contexts, $otherContexts);
     $this->assertEquals($result, ["one"]);
 }