Bugzilla – Attachment 60820 Details for
Bug 18182
TestBuilder should be able to return Koha::Object objects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18182: (followup) Add POD
Bug-18182-followup-Add-POD.patch (text/plain), 952 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2017-03-03 23:10:50 UTC
(
hide
)
Description:
Bug 18182: (followup) Add POD
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-03-03 23:10:50 UTC
Size:
952 bytes
patch
obsolete
>From cf985875d17950df299468972c3b23388a2cb44d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 3 Mar 2017 20:09:56 -0300 >Subject: [PATCH] Bug 18182: (followup) Add POD > >--- > t/lib/TestBuilder.pm | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm >index 25a8d7e7c0..654f1288cf 100644 >--- a/t/lib/TestBuilder.pm >+++ b/t/lib/TestBuilder.pm >@@ -531,6 +531,13 @@ Note that you should wrap these actions in a transaction yourself. > Realize that passing primary key values to build may result in undef > if a record with that primary key already exists. > >+=head2 build_object >+ >+Given a plural Koha::Object-derived class, it creates a random element, and >+returns the corresponding Koha::Object. >+ >+ my $patron = $builder->build_object({ class => 'Koha::Patrons', id => 'borrowernumber' }); >+ > =head1 AUTHOR > > Yohann Dufour <yohann.dufour@biblibre.com> >-- >2.12.0
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 18182
:
60819
|
60820
|
61702
|
61752
|
61753
|
62113
|
62114
|
62121
|
62122
|
62371
|
62372
|
62373
|
62374
|
62383
|
62384
|
62385
|
62386