Browse Source

Bug 10710: (follow-up) perltidy new code

Also, I prefer the use of parentheses for function
calls, even when no arguments are being passed.
One missed comma turns

is(GetOfflineOperation, ...)

into

is(GetOfflineOperation ...)

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
new/bootstrap-opac
Galen Charlton 11 years ago
parent
commit
35b83e540e
  1. 12
      t/db_dependent/Circulation_OfflineOperation.t

12
t/db_dependent/Circulation_OfflineOperation.t

@ -80,16 +80,20 @@ is_deeply(
}, },
"GetOffline returns offlineoperation's informations" "GetOffline returns offlineoperation's informations"
); );
is(GetOfflineOperation,undef,'GetOfflineOperation without parameters returns undef'); is( GetOfflineOperation(), undef,
is(GetOfflineOperation(-1),undef,'GetOfflineOperation with wrong parameters returns undef'); 'GetOfflineOperation without parameters returns undef' );
is( GetOfflineOperation(-1), undef,
'GetOfflineOperation with wrong parameters returns undef' );
#Test GetOfflineOperations #Test GetOfflineOperations
#TODO later: test GetOfflineOperations #TODO later: test GetOfflineOperations
# Actually we cannot mock C4::Context->userenv in unit tests # Actually we cannot mock C4::Context->userenv in unit tests
#Test DeleteOfflineOperation #Test DeleteOfflineOperation
is (DeleteOfflineOperation($offline_id),'Deleted.','Offlineoperation has been deleted'); is( DeleteOfflineOperation($offline_id),
#is (DeleteOfflineOperation, undef, 'DeleteOfflineOperation without id returns undef'); 'Deleted.', 'Offlineoperation has been deleted' );
#is (DeleteOfflineOperation(), undef, 'DeleteOfflineOperation without id returns undef');
#is (DeleteOfflineOperation(-1),undef, 'DeleteOfflineOperation with a wrong id returns undef');#FIXME #is (DeleteOfflineOperation(-1),undef, 'DeleteOfflineOperation with a wrong id returns undef');#FIXME
#End transaction #End transaction

Loading…
Cancel
Save