[Koha-bugs] [Bug 26326] Add Koha Objects for Import Records and Import Record Matches
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed May 19 14:34:30 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26326
--- Comment #8 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
I'm getting a failure on that second test:
root at kohadevbox:koha(master)$ prove -v
t/db_dependent/Koha/Import/Record/Matches.t
t/db_dependent/Koha/Import/Record/Matches.t ..
1..7
No method count found for Koha::Import::Record::Matches
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st
execute failed: Unknown column 'chosen' in 'where clause' [for Statement
"SELECT COUNT( * ) FROM `import_record_matches` `me` WHERE ( `chosen` = ? )"
with ParamValues: 0=1] at /kohadevbox/koha/Koha/Objects.pm line 601
at t/db_dependent/Koha/Import/Record/Matches.t line 34.
ok 1 - The 2 matches should have been added
No method count found for Koha::Import::Record::Matches
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st
execute failed: Unknown column 'chosen' in 'where clause' [for Statement
"SELECT COUNT( * ) FROM `import_record_matches` `me` WHERE ( `chosen` = ? )"
with ParamValues: 0=1] at /kohadevbox/koha/Koha/Objects.pm line 601
at t/db_dependent/Koha/Import/Record/Matches.t line 41.
Use of uninitialized value $nb_of_chosen_matches in addition (+) at
t/db_dependent/Koha/Import/Record/Matches.t line 41.
not ok 2 - The 2 chosen matches should have been added
# Failed test 'The 2 chosen matches should have been added'
# at t/db_dependent/Koha/Import/Record/Matches.t line 41.
# got: undef
# expected: '2'
ok 3 - Find a match by import record id and candidate should return the correct
match
The method Koha::Import::Record::Match->chosen is not covered by tests!
Trace begun at /kohadevbox/koha/Koha/Object.pm line 826
Koha::Object::AUTOLOAD('Koha::Import::Record::Match=HASH(0x560a165b3078)', 0)
called at /kohadevbox/koha/Koha/Import/Record/Matches.pm line 49
Koha::Import::Record::Matches::unset_chosen('Koha::Import::Record::Matches=HASH(0x560a165f24b8)')
called at t/db_dependent/Koha/Import/Record/Matches.t line 47
# Looks like your test exited with 255 just after 3.
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 5/7 subtests
Test Summary Report
-------------------
t/db_dependent/Koha/Import/Record/Matches.t (Wstat: 65280 Tests: 3 Failed: 1)
Failed test: 2
Non-zero exit status: 255
Parse errors: Bad plan. You planned 7 tests but ran 3.
Files=1, Tests=3, 2 wallclock secs ( 0.01 usr 0.00 sys + 1.17 cusr 0.21
csys = 1.39 CPU)
Result: FAIL
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list