/** * @covers Applications\Entity\Application::getAttachments * @covers Applications\Entity\Application::setAttachments */ public function testSetGetAttachments() { $attachment = new Attachment(); $attachment->setName('foo'); $attachments = new ArrayCollection(); $attachments->add($attachment); $this->target->setAttachments($attachments); $this->assertEquals($attachments, $this->target->getAttachments()); }