X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fmore-psgi-compat.t;h=a176472c2b35246667dfb35e42a5d062eaaf30e6;hp=71dc283921bab5190e99bb4823b9887161dce62a;hb=5b4973aa317bc6bcb27f2c3d37c1309e508b3ce1;hpb=4491e0cc34b2be2fc485ad01fbbf51b61fed4c22 diff --git a/t/more-psgi-compat.t b/t/more-psgi-compat.t index 71dc283..a176472 100644 --- a/t/more-psgi-compat.t +++ b/t/more-psgi-compat.t @@ -34,4 +34,20 @@ use Catalyst::Test 'TestFromPSGI'; 'expected content body /from_psgi_code_itr'; } +{ + ok my($res, $c) = ctx_request(POST '/test_psgi_keys?a=1&b=2', [c=>3,d=>4]); + + ok $c->req->env->{"psgix.input.buffered"}, "input is buffered"; + + is $c->req->parameters->get('c'), 3; + is $c->req->parameters->get('d'), 4; + is $c->req->parameters->get('a'), 1; + is $c->req->parameters->get('b'), 2; + + is $c->req->body_parameters->get('c'), 3; + is $c->req->body_parameters->get('d'), 4; + is $c->req->query_parameters->get('a'), 1; + is $c->req->query_parameters->get('b'), 2; +} + done_testing;