]> git.koha-community.org Git - koha.git/commit
Bug 14639: (QA followup) make schema mandatory
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 3 Sep 2015 13:13:18 +0000 (10:13 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 7 Sep 2015 15:06:21 +0000 (12:06 -0300)
commit40fc2a99c19de69feb8e10a49441d701c9e6e0e8
treec2f99a0c4b068df830c5c5d8619e5ff4081bad60
parent2afaddb592cdf0937dc0f2de3c80d65ee7f83ffb
Bug 14639: (QA followup) make schema mandatory

This patch makes the 'schema' param mandatory. It is passed in every
call on the current codebase, so it makes no harm now, but makes
the code less error-prone.

Tests for this situation are added to t/Koha_MetadataRecord.t (schema
param is omitted and new() returns undef and a carped warning).

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/MetadataRecord.pm
t/Koha_MetadataRecord.t