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()
 {
     $this->documentManager = TestCase::createTestDocumentManager();
     $this->documentManager->createQueryBuilder(self::DOCUMENT_CLASS)->remove()->getQuery()->execute();
     parent::setUp();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->documentManager = $this->createTestDocumentManager();
 }