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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to