View | Details | Raw Unified | Return to bug 10710
Collapse All | Expand All

(-)a/t/db_dependent/Circulation_OfflineOperation.t (-6 / +9 lines)
Lines 71-77 is_deeply( Link Here
71
    {
71
    {
72
        operationid => $offline_id,
72
        operationid => $offline_id,
73
        userid      => 'User1',
73
        userid      => 'User1',
74
        branchcode  =>  $samplebranch1->{branchcode},
74
        branchcode  => $samplebranch1->{branchcode},
75
        timestamp   => "0000-00-00 00:00:00",
75
        timestamp   => "0000-00-00 00:00:00",
76
        action      => 'Action1',
76
        action      => 'Action1',
77
        barcode     => 'CODE',
77
        barcode     => 'CODE',
Lines 80-95 is_deeply( Link Here
80
    },
80
    },
81
    "GetOffline returns offlineoperation's informations"
81
    "GetOffline returns offlineoperation's informations"
82
);
82
);
83
is(GetOfflineOperation,undef,'GetOfflineOperation without parameters returns undef');
83
is( GetOfflineOperation(), undef,
84
is(GetOfflineOperation(-1),undef,'GetOfflineOperation with wrong parameters returns undef');
84
    'GetOfflineOperation without parameters returns undef' );
85
is( GetOfflineOperation(-1), undef,
86
    'GetOfflineOperation with wrong parameters returns undef' );
85
87
86
#Test GetOfflineOperations
88
#Test GetOfflineOperations
87
#TODO later: test GetOfflineOperations
89
#TODO later: test GetOfflineOperations
88
# Actually we cannot mock C4::Context->userenv in unit tests
90
# Actually we cannot mock C4::Context->userenv in unit tests
89
91
90
#Test DeleteOfflineOperation
92
#Test DeleteOfflineOperation
91
is (DeleteOfflineOperation($offline_id),'Deleted.','Offlineoperation has been deleted');
93
is( DeleteOfflineOperation($offline_id),
92
#is (DeleteOfflineOperation, undef, 'DeleteOfflineOperation without id returns undef');
94
    'Deleted.', 'Offlineoperation has been deleted' );
95
96
#is (DeleteOfflineOperation(), undef, 'DeleteOfflineOperation without id returns undef');
93
#is (DeleteOfflineOperation(-1),undef, 'DeleteOfflineOperation with a wrong id returns undef');#FIXME
97
#is (DeleteOfflineOperation(-1),undef, 'DeleteOfflineOperation with a wrong id returns undef');#FIXME
94
98
95
#End transaction
99
#End transaction
96
- 

Return to bug 10710