Deprecated 'collection' parameter in favor of 'cq' - fixes #92
Change-Id: I51f0197da3a182fc4d4cd35f12ccb88cce3f8833
diff --git a/t/server/mock.pl b/t/server/mock.pl
index 2c7f43b..2b998ab 100644
--- a/t/server/mock.pl
+++ b/t/server/mock.pl
@@ -77,6 +77,7 @@
$v->optional('q');
$v->optional('page');
$v->optional('ql');
+ $v->optional('cq');
$v->optional('count');
$v->optional('context');
$v->optional('offset');
@@ -102,6 +103,7 @@
push @slug_base, 'o' . $v->param('offset') if defined $v->param('offset');
push @slug_base, 'c' . $v->param('count') if defined $v->param('count');
push @slug_base, 'co' . $v->param('cutoff') if defined $v->param('cutoff');
+ push @slug_base, 'cq' if defined $v->param('cq');
# Get response based on query parameter
my $response = $c->load_response('query_' . slugify(join('_', @slug_base)));