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

(-)a/t/db_dependent/api/v1/cashups.t (-2 / +5 lines)
Lines 63-69 subtest 'list() tests' => sub { Link Here
63
63
64
    ## Authorized user tests
64
    ## Authorized user tests
65
    # No cash register, so 404 should be returned
65
    # No cash register, so 404 should be returned
66
    $t->get_ok("//$userid:$password@/api/v1/cash_registers/1/cashups")
66
    my $cash_register_to_delete = $builder->build_object( { class => 'Koha::Cash::Registers' } );
67
    my $non_existent_cr_id      = $cash_register_to_delete->id;
68
    $cash_register_to_delete->delete;
69
70
    $t->get_ok("//$userid:$password@/api/v1/cash_registers/$non_existent_cr_id/cashups")
67
      ->status_is(404)->json_is( '/error' => 'Register not found' );
71
      ->status_is(404)->json_is( '/error' => 'Register not found' );
68
72
69
    my $register = $builder->build_object(
73
    my $register = $builder->build_object(
70
- 

Return to bug 36493