[Koha-bugs] [Bug 12417] Koha::Borrower::Files.pm needs unit tests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 24 06:47:35 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12417

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA
                 CC|                            |katrin.fischer at bsz-bw.de

--- Comment #3 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
The tests fail for me, because I have borrowers with issues in my database I
think:

ok 1 - use Koha::Borrower::Files;
DBD::mysql::db do failed: Cannot delete or update a parent row: a foreign key
constraint fails (`koha`.`issues`, CONSTRAINT `issues_ibfk_1` FOREIGN KEY
(`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON UPDATE CASCADE)
at t/db_dependent/Borrower_Files.t line 33.
DBD::mysql::db do failed: Cannot delete or update a parent row: a foreign key
constraint fails (`koha`.`issues`, CONSTRAINT `issues_ibfk_1` FOREIGN KEY
(`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON UPDATE CASCADE)
at t/db_dependent/Borrower_Files.t line 33.

Maybe the tests can be improved a bit to make this not a problem?

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


More information about the Koha-bugs mailing list