getRequest: test documentation better detailed

Add a bit more detail in the test description to note we're using
requestType, not requestTypeId parameter in this test.
This commit is contained in:
Bradley M. Kuhn 2015-12-30 04:05:21 -08:00
parent 5b8453d9ae
commit d6ce8225d9

View file

@ -378,7 +378,7 @@ lives_ok { $tt = $sp->getRequest({ donorId => $drapperId, requestType => 'this-o
is($tt, undef, "getRequest: returns undef for valid supporter and on-existent request."); is($tt, undef, "getRequest: returns undef for valid supporter and on-existent request.");
lives_ok { $tt = $sp->getRequest({donorId => $drapperId, requestType => 't-shirt-small-only' }); } lives_ok { $tt = $sp->getRequest({donorId => $drapperId, requestType => 't-shirt-small-only' }); }
"getRequest: succeeds with valid parameters."; "getRequest: succeeds with valid parameters, using requestType.";
is($tt->{requestType}, 't-shirt-small-only', "getRequest: requestType is correct."); is($tt->{requestType}, 't-shirt-small-only', "getRequest: requestType is correct.");
is($tt->{fulfillDate}, $today, "getRequest: fulfilled request is today."); is($tt->{fulfillDate}, $today, "getRequest: fulfilled request is today.");