[Koha-bugs] [Bug 10386] UT: VirtualShelves.t needs some more adjustments
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 28 12:18:46 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10386
Chris Cormack <chris at bigballofwax.co.nz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #19178|0 |1
is obsolete| |
--- Comment #5 from Chris Cormack <chris at bigballofwax.co.nz> ---
Created attachment 19273
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19273&action=edit
Bug 10386: VirtualShelves.t needs some more adjustments
Most important: Does no longer delete all shelves!
Checks if there are ten borrowers for testing. But even works without them :)
When creating or modifying lists, takes name clashes into consideration.
Small change to _CheckShelfName in VirtualShelves module. Making it possible to
check a name for a list whose owner has been set to NULL. Note that a test
like field=? with undef for placeholder will not work in MySql.
Test plan:
How do you test a test? Well, you could run it on various databases..
But for real hacking, you could also add some debug lines.
I tested this by forcing 10 undefs in @borrowernumbers.
And by overwriting the return value of randomname with an existing name.
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list