{copy_list=>[$copies->[0]->id()]}
);
is(
- $resp,
- '1',
+ $resp->[0],
+ 1,
'Update copy inventory succeeded'
);
$authtoken,
{copy_list=>[$copies->[0]->id()]}
);
-ok(
- ref $resp,
- 'Update copy inventory should fail'
+is(
+ $resp->[0],
+ 0,
+ 'Update copy inventory should have 0 success'
+);
+is(
+ $resp->[1],
+ 1,
+ 'Update copy inventory should have 1 failure'
);
# Make the second one float and it should succeed.
$fcopy = $copies->[1];
{copy_list=>[$fcopy->id()]}
);
is(
- $resp,
- '1',
+ $resp->[0],
+ 1,
'Update inventory for floating copy'
);
} else {
BAIL_OUT('Set copy floating failed');
}
-# We could run 35 or 36 tests depending on what we find in the
+# We could run 36 or more tests depending on what we find in the
# database, so we don't specify a number of tests.
done_testing();