Update API for statistics (replace corpusQuery parameters with cq)
Change-Id: Ie1e9b9a6c30fd6957a372d47d09119b9a97dad43
diff --git a/t/server/mock.pl b/t/server/mock.pl
index 2b998ab..961c6ea 100644
--- a/t/server/mock.pl
+++ b/t/server/mock.pl
@@ -177,11 +177,11 @@
get '/v1.0/statistics' => sub {
my $c = shift;
my $v = $c->validation;
- $v->optional('corpusQuery');
+ $v->optional('cq');
my @list = 'corpusinfo';
- if ($v->param('corpusQuery')) {
- push @list, $v->param('corpusQuery');
+ if ($v->param('cq')) {
+ push @list, $v->param('cq');
};
my $slug = slugify(join('_', @list));