[Koha-bugs] [Bug 18182] New: TestBuilder should be able to return Koha::Object objects

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 28 12:55:15 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18182

            Bug ID: 18182
           Summary: TestBuilder should be able to return Koha::Object
                    objects
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Test Suite
          Assignee: chris at bigballofwax.co.nz
          Reporter: tomascohen at gmail.com
        QA Contact: gmcharlt at gmail.com

There's a common pattern in most tests we write:

my $object_hash = $builder->build({ source => 'TheSchema', value => { fixed =>
values, ... } });
my $id = $object->{the_id_field};
my $object = Koha::Objects->find($id);

< the actual tests >

It would be handy to have TestBuilder provide a way to actually retrieve the
Koha::Object instance.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list