Support text information endpoint

Change-Id: I93499d56e235f99dd56189e0174b5c572ae36189
diff --git a/t/fixtures/fake_backend.pl b/t/fixtures/fake_backend.pl
index 9f06697..7506d84 100644
--- a/t/fixtures/fake_backend.pl
+++ b/t/fixtures/fake_backend.pl
@@ -114,6 +114,24 @@
   return 1;
 };
 
+# Textinfo fixtures
+get '/corpus/:corpusId/:docId/:textId' => sub {
+  my $c = shift;
+
+  my $file = join('_', (
+    'textinfo',
+    $c->stash('corpusId'),
+    $c->stash('docId'),
+    $c->stash('textId')
+  ));
+
+  my $slug = slugify($file);
+
+  # Get response based on query parameter
+  my $response = $c->load_response($slug);
+  return $c->render(%$response);
+};
+
 
 # Matchinfo fixtures
 get '/corpus/:corpusId/:docId/:textId/:matchId/matchInfo' => sub {