From cf985875d17950df299468972c3b23388a2cb44d Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi 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 -- 2.12.0