public function testSetAndGetAndAddProjectParticipants() { $project = new Project(); $user = new User(); $project->addParticipant($user); $participants = $project->getParticipants(); $this->assertEquals($participants->count(), 1); $this->assertTrue(\is_a($participants, 'Doctrine\\Common\\Collections\\ArrayCollection'), 2); $project->setParticipants($participants); $this->assertEquals($project->getParticipants(), $participants); }