/**
  * test get depth
  *
  * @return void
  */
 public function testGetDepth()
 {
     $conn = $this->conn;
     $repo = $this->repo;
     $configHandler = $this->configHandler;
     $instanceManager = $this->instanceManager;
     $request = $this->request;
     $handler = new DocumentHandler($conn, $repo, $configHandler, $instanceManager, $request);
     $doc = $this->getDocumentEntity();
     $doc->reply = '';
     $replyHelper = m::mock('Xpressengine\\Document\\Repositories\\ReplyHelper');
     $replyHelper->shouldReceive('getReplyCharLen')->andReturn(3);
     $repo->shouldReceive('getReplyHelper')->andReturn($replyHelper);
     $result = $handler->getDepth($doc);
     $this->assertEquals(0, $result);
     $doc->reply = 'aaa';
     $result = $handler->getDepth($doc);
     $this->assertEquals(1, $result);
 }