Lines 41-47
my $location = 'My Location';
Link Here
|
41 |
|
41 |
|
42 |
subtest 'General Add, Get and Del tests' => sub { |
42 |
subtest 'General Add, Get and Del tests' => sub { |
43 |
|
43 |
|
44 |
plan tests => 10; |
44 |
plan tests => 14; |
45 |
|
45 |
|
46 |
# Start transaction |
46 |
# Start transaction |
47 |
$dbh->{AutoCommit} = 0; |
47 |
$dbh->{AutoCommit} = 0; |
Lines 78-83
subtest 'General Add, Get and Del tests' => sub {
Link Here
|
78 |
is( $getitem->{location}, $location, "The location should not have been modified" ); |
78 |
is( $getitem->{location}, $location, "The location should not have been modified" ); |
79 |
is( $getitem->{permanent_location}, 'my permanent location', "The permanent_location should not have modified" ); |
79 |
is( $getitem->{permanent_location}, 'my permanent location', "The permanent_location should not have modified" ); |
80 |
|
80 |
|
|
|
81 |
ModItem({ location => $location }, $bibnum, $itemnumber); |
82 |
$getitem = GetItem($itemnumber); |
83 |
is( $getitem->{location}, $location, "The location should have been set to correct location" ); |
84 |
is( $getitem->{permanent_location}, $location, "The permanent_location should have been set to location" ); |
85 |
|
86 |
ModItem({ location => 'CART' }, $bibnum, $itemnumber); |
87 |
$getitem = GetItem($itemnumber); |
88 |
is( $getitem->{location}, 'CART', "The location should have been set to CART" ); |
89 |
is( $getitem->{permanent_location}, $location, "The permanent_location should not have been set to CART" ); |
90 |
|
81 |
$dbh->rollback; |
91 |
$dbh->rollback; |
82 |
}; |
92 |
}; |
83 |
|
93 |
|
84 |
- |
|
|