[Koha-bugs] [Bug 34414] New: Remove DBD::Mock
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 26 08:53:53 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34414
Bug ID: 34414
Summary: Remove DBD::Mock
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: m.de.rooy at rijksmuseum.nl
QA Contact: testopia at bugs.koha-community.org
Bug 33940 will remove t/Members/cardnumber.t that APPEARS to use a feature of
DBD::Mock, i.e. filling $dbh->{mock_add_resultset}.
But since the module is not loaded there (since ages), the whole thing is not
even working!
Simple illustration.
Suppose you have borrower 50.
Run update cardnumber='123456789' where borrowernumber=50;
Now run t/Members/cardnumber.t
not ok 3 - 123456789 is shorter than 10
# Failed test '123456789 is shorter than 10'
# at t/Members/cardnumber.t line 36.
# got: '1'
# expected: '2'
What happened? Instead of using the mocked empty set, checkcardnumber finds
your 123456789 cardnumber in the database. Deception !
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list