Bugzilla – Attachment 150279 Details for
Bug 24310
Use Text::Lorem instead of String::Random in Test::Builder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24310: Fix TestBuilder to generate consistent list content
Bug-24310-Fix-TestBuilder-to-generate-consistent-l.patch (text/plain), 854 bytes, created by
Jonathan Druart
on 2023-04-27 05:48:38 UTC
(
hide
)
Description:
Bug 24310: Fix TestBuilder to generate consistent list content
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-04-27 05:48:38 UTC
Size:
854 bytes
patch
obsolete
>From 815733641a3c279b549739c8c42c0eda01353554 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sat, 21 Dec 2019 12:05:10 +0100 >Subject: [PATCH] Bug 24310: Fix TestBuilder to generate consistent list > content > >--- > t/lib/TestBuilder.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm >index d393cc8e8c8..7e70f29c9e4 100644 >--- a/t/lib/TestBuilder.pm >+++ b/t/lib/TestBuilder.pm >@@ -662,6 +662,10 @@ sub _gen_default_values { > renewal_priority => undef, > vendor_id => undef, > }, >+ Virtualshelve => { >+ category => sub { return int(rand(2) + 1) }, >+ sortfield => sub { return [ qw( title author copyrightdate itemcallnumber dateadded ) ]->[int(rand(5))] }, >+ } > }; > } > >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24310
:
96647
|
96648
| 150279 |
150280