Bug 10126: (qa followup) fix tests
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 16 Oct 2014 13:24:07 +0000 (10:24 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 16 Oct 2014 13:24:10 +0000 (10:24 -0300)
It seems the removal of global variables changes the behaviour
of Test::MockModule, and it now expects the namespace in front
of the statically called method.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

C4/Reports/Guided.pm

index b782407..f793a25 100644 (file)
@@ -983,7 +983,7 @@ sub IsAuthorisedValueValid {
     my $reserved_authorised_values = GetReservedAuthorisedValues();
 
     if ( exists $reserved_authorised_values->{$authorised_value} ||
-         IsAuthorisedValueCategory($authorised_value)   ) {
+         C4::Koha::IsAuthorisedValueCategory($authorised_value)   ) {
         return 1;
     }