https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=1985

ByWater Sandboxes <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #91198|0                           |1
        is obsolete|                            |

--- Comment #93 from ByWater Sandboxes <[email protected]> ---
Created attachment 91823
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91823&action=edit
Bug 1985: (follow-up) Fix Reviews.t logic

Read the tests to make sure they make sense.
Before the patch is applied, they don't.

$nb_of_approved_reviews + 2 did not make sense, because the three
reviews added were not approved.
search->count counts everything, so the use of approved+3 didn't
make sense.
Rather than duplicate the search->count test, changed the
first one to reflect that the added reviews were all unapproved.

Before applying patch, prove fails.

After applying patch, prove passes.

Signed-off-by: Andrew Fuerste-Henry <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to