From 5b8453d9ae61ee19d60dcbf50bfc0f5a1fce8676 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 30 Dec 2015 04:04:48 -0800 Subject: [PATCH] getRequest: Modify test to support requestTypeId Now that requestTypeId parameter is valid, one of these tests should use it. --- Supporters/t/Supporters.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Supporters/t/Supporters.t b/Supporters/t/Supporters.t index 9a920e4..6896181 100644 --- a/Supporters/t/Supporters.t +++ b/Supporters/t/Supporters.t @@ -387,8 +387,8 @@ is($tt->{requestConfiguration}, 'Small', "getRequest: configuration is correct." is($tt->{notes}, 'he probably needs a larger size but this shirt has none', "getRequest: notes are correct."); -lives_ok { $tt = $sp->getRequest({donorId => $drapperId, requestType => 't-shirt-0' } ); } - "getRequest: succeeds with valid parameters."; +lives_ok { $tt = $sp->getRequest({donorId => $drapperId, requestTypeId => $tShirt0RequestTypeId } ); } + "getRequest: succeeds with valid parameters, using requestTypeId."; is($tt->{requestType}, 't-shirt-0', "getRequest: requestType is correct."); is($tt->{requestDate}, $today, "getRequest: request date is today.");