Lines 9-15
use C4::Circulation;
Link Here
|
9 |
use Koha::DateUtils; |
9 |
use Koha::DateUtils; |
10 |
use DateTime::Duration; |
10 |
use DateTime::Duration; |
11 |
|
11 |
|
12 |
use Test::More tests => 12; |
12 |
use Test::More tests => 14; |
13 |
|
13 |
|
14 |
BEGIN { |
14 |
BEGIN { |
15 |
use_ok('C4::Circulation'); |
15 |
use_ok('C4::Circulation'); |
Lines 191-198
is(
Link Here
|
191 |
is( C4::Circulation::DeleteTransfer($item_id1), |
191 |
is( C4::Circulation::DeleteTransfer($item_id1), |
192 |
1, "A the item1's transfer has been deleted" ); |
192 |
1, "A the item1's transfer has been deleted" ); |
193 |
#FIXME :The following tests should pass but don't because currently the routine DeleteTransfer returns nothing |
193 |
#FIXME :The following tests should pass but don't because currently the routine DeleteTransfer returns nothing |
194 |
#is(C4::Circulation::DeleteTransfer(),undef,"Without itemid DeleteTransfer returns undef"); |
194 |
is(C4::Circulation::DeleteTransfer(),undef,"Without itemid DeleteTransfer returns undef"); |
195 |
#is(C4::Circulation::DeleteTransfer(-1),0,"with a wrong itemid DeleteTranfer returns 0"); |
195 |
is(C4::Circulation::DeleteTransfer(-1),'0E0',"with a wrong itemid DeleteTranfer returns 0E0"); |
196 |
|
196 |
|
197 |
#End transaction |
197 |
#End transaction |
198 |
$dbh->rollback; |
198 |
$dbh->rollback; |
199 |
- |
|
|