_getOrCreateRequestConfiguration: Additional test.
This additional test makes sure that it still fails a previous condition when the requestTypeId is correct.
This commit is contained in:
parent
8f22a89a47
commit
fc2250203d
1 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More tests => 124;
|
||||
use Test::More tests => 125;
|
||||
use Test::Exception;
|
||||
|
||||
use Scalar::Util qw(looks_like_number reftype);
|
||||
|
@ -458,6 +458,10 @@ dies_ok { $tempSP->_getOrCreateRequestConfiguration({ requestTypeId => "NoString
|
|||
dies_ok { $tempSP->_getOrCreateRequestConfiguration({ requestTypeId => 0 }); }
|
||||
"_getOrCreateRequestConfiguration: dies for non-existant requestTypeId";
|
||||
|
||||
dies_ok { $tempSP->_getOrCreateRequestConfiguration({ requestTypeId => $rr,
|
||||
requestConfigurationId => "NoStringsPlease" }); }
|
||||
"_getOrCreateRequestConfiguration: dies for string requestConfigurationId with valid requestTypeId";
|
||||
|
||||
%hh = ( requestConfiguration => 'test-request-config' );
|
||||
dies_ok { $tempSP->_getOrCreateRequestConfiguration(\%hh); }
|
||||
"_getOrCreateRequestConfiguration: fails with just requestConfiguration.";
|
||||
|
|
Loading…
Reference in a new issue