/**
  * Revision table 에 별도로 데이터를 insert 할 경우
  *
  * @param DocumentEntity $doc    document entity
  * @param ConfigEntity   $config document config entity
  * @return void
  */
 public function insertRevision(DocumentEntity $doc, ConfigEntity $config)
 {
     $this->revision->insert($doc, $config);
 }
 /**
  * test delete
  *
  * @return void
  */
 public function testDelete()
 {
     $conn = $this->conn;
     $revisionManager = $this->revisionManager;
     $keygen = $this->keygen;
     $repo = new RevisionRepository($conn, $revisionManager, $keygen);
     $instanceId = 'instanceId';
     $id = 'documentId';
     $revisionId = 'revisionId';
     $doc = $this->getDocumentEntity();
     $doc->revisionId = $revisionId;
     $doc->id = $id;
     $doc->instanceId = $instanceId;
     $query = $this->query;
     $query->shouldReceive('where')->andReturn($query);
     $query->shouldReceive('delete')->andReturn(1);
     $result = $repo->deleteByInstanceId($instanceId);
     $this->assertEquals(1, $result);
     $repo->delete($doc);
     $repo->deleteByDocumentId($id);
 }