[Koha-bugs] [Bug 14097] Add unit tests to C4::UsageStats

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 30 14:36:03 CEST 2015


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

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |veron at veron.ch

--- Comment #2 from Marc Véron <veron at veron.ch> ---
Got following error:

t/db_dependent/UsageStats.t .. 1/552 DBD::mysql::db do failed: Cannot delete or
update a parent row: a foreign key constraint fails (`koha_kohadev`.`issues`,
CONSTRAINT `issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items`
(`itemnumber`) ON UPDATE CASCADE) at t/db_dependent/UsageStats.t line 45.
DBD::mysql::db do failed: Cannot delete or update a parent row: a foreign key
constraint fails (`koha_kohadev`.`issues`, CONSTRAINT `issues_ibfk_2` FOREIGN
KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON UPDATE CASCADE) at
t/db_dependent/UsageStats.t line 45.
# Looks like you planned 552 tests but ran 9.
# Looks like your test exited with 255 just after 9.
t/db_dependent/UsageStats.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 543/552 subtests 

After that, my DB seems to be broken, can not langer search, get:

No results found
You did not specify any search criteria.
Error: Can't call method "raw" on an undefined value at
/usr/share/kohaclone/C4/Search.pm line 799. 

Not sure what happend. Will have to restore my VM from yesterday's backup.

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


More information about the Koha-bugs mailing list