]> git.koha-community.org Git - koha.git/commit
Bug 12445: Improving unit tests for C4::Suggestions.pm
authorYohann Dufour <dufour.yohann@gmail.com>
Thu, 19 Jun 2014 07:14:24 +0000 (09:14 +0200)
committerMason James <mtj@kohaaloha.com>
Fri, 29 May 2015 07:18:47 +0000 (19:18 +1200)
commitb42f8cf1b23dc0eb3c3bd6e43c3d532fd8ff31bc
tree4aa5390e77e372480d4b0e4dcb829e02394256f3
parent0c591aa0b117ac0059e0ad84bdbca05c58605f63
Bug 12445: Improving unit tests for C4::Suggestions.pm

Now, the tests used 'is' instead of 'ok', the tests are wrapped in a transaction, adding tests for the routines NewSuggestion, GetSuggestion, ModSuggestion, GetSuggestionFromBiblionumber and GetInfoFromBiblionumber.

The tests for the routines DelSuggestionsOlderThan, CountSuggestion, ConnectSuggestionAndBiblio, SearchSuggestion, GetSuggestionInfo, DelSuggestion and GetSuggestionByStatus will be arrived in another patch.

Test plan:
1/ Execute the command : prove t/db_dependent/Suggestions.t
2/ The result has to be a success without warning or error :
t/db_dependent/Suggestions.t .. ok
All tests successful.
Files=1, Tests=32,  2 wallclock secs ( 0.03 usr  0.01 sys +  1.49 cusr  0.08 csys =  1.61 CPU)
Result: PASS

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Mason James <mtj@kohaaloha.com>
t/db_dependent/Suggestions.t