public function setUp() { parent::setUp(); $this->classMetadata = $this->getClassMetadata(); $this->repository = $this->getDocumentRepository(); $this->dm = $this->getDocumentManager($this->classMetadata, $this->repository); $container = $this->getContainer(); $this->validator = new UniqueValidator($container); }
protected function setUp() { parent::setUp(); $this->documentManager = $this->createTestDocumentManager(); }