getRequest: Modify test to support requestTypeId

Now that requestTypeId parameter is valid, one of these tests should use
it.
This commit is contained in:
Bradley M. Kuhn 2015-12-30 04:04:48 -08:00
parent 1760f60759
commit 5b8453d9ae

View file

@ -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', is($tt->{notes}, 'he probably needs a larger size but this shirt has none',
"getRequest: notes are correct."); "getRequest: notes are correct.");
lives_ok { $tt = $sp->getRequest({donorId => $drapperId, requestType => 't-shirt-0' } ); } lives_ok { $tt = $sp->getRequest({donorId => $drapperId, requestTypeId => $tShirt0RequestTypeId } ); }
"getRequest: succeeds with valid parameters."; "getRequest: succeeds with valid parameters, using requestTypeId.";
is($tt->{requestType}, 't-shirt-0', "getRequest: requestType is correct."); is($tt->{requestType}, 't-shirt-0', "getRequest: requestType is correct.");
is($tt->{requestDate}, $today, "getRequest: request date is today."); is($tt->{requestDate}, $today, "getRequest: request date is today.");