public function it_sets_attachments_to_the_collection(AttachmentInterface $attachment) { $this->set('attachment1', $attachment)->shouldReturn(null); $this->get('attachment1')->shouldReturn($attachment); }