[Koha-bugs] [Bug 13942] Testing the 'recordpayment' function in C4::Accounts

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 9 09:39:01 CEST 2015


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

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at biblibre.co
                   |                            |m

--- Comment #4 from Jonathan Druart <jonathan.druart at biblibre.com> ---
(In reply to Kyle M Hall from comment #3)
> I received the following when I ran the unit tests with an installation
> using the sample data:
> prove -v t/db_dependent/Accounts.t
> t/db_dependent/Accounts.t ..
> 1..15
> ok 1 - use C4::Accounts;
> ok 2 - use Koha::Object;
> ok 3 - use Koha::Borrower;
> ok 4 - use Data::Dumper;
> ok 5 - C4::Accounts->can(...)
> DBD::mysql::db do failed: Cannot delete or update a parent row: a foreign
> key constraint fails (`koha_kohaqa`.`issues`, CONSTRAINT `issues_ibfk_1`
> FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON
> UPDATE CASCADE) at t/db_dependent/Accounts.t line 53.

This is because you have issues in your DB, so not the default sample data :)
But this needs to be fixed anyway.

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


More information about the Koha-bugs mailing list