Bug 36081: Force TestBuilder to generate a valid format value
Signed-off-by: Magnus Enger <magnus@libriotech.no> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
ddc0e07bab
commit
5baaecc58f
1 changed files with 6 additions and 0 deletions
|
@ -610,6 +610,12 @@ sub _gen_blob {
|
|||
sub _gen_default_values {
|
||||
my ($self) = @_;
|
||||
return {
|
||||
ArticleRequest => {
|
||||
format => sub {
|
||||
my $formats = C4::Context->multivalue_preference('ArticleRequestsSupportedFormats');
|
||||
return $formats->[ int( rand( scalar @$formats ) ) ];
|
||||
}
|
||||
},
|
||||
AuthorisedValueCategory => {
|
||||
is_integer_only => 0,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue