[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
Fri Apr 3 16:39:22 CEST 2015


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kyle at bywatersolutions.com
             Status|Signed Off                  |Failed QA

--- Comment #3 from Kyle M Hall <kyle at bywatersolutions.com> ---
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.
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.
# Looks like you planned 15 tests but ran 5.
# Looks like your test exited with 255 just after 5.
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 10/15 subtests

Test Summary Report
-------------------
t/db_dependent/Accounts.t (Wstat: 65280 Tests: 5 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 15 tests but ran 5.
Files=1, Tests=5,  0 wallclock secs ( 0.01 usr  0.01 sys +  0.46 cusr  0.04
csys =  0.52 CPU)
Result: FAIL

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


More information about the Koha-bugs mailing list