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

(-)a/t/db_dependent/Upload.t (-2 / +1 lines)
Lines 185-191 subtest 'Test delete via UploadedFile as well as UploadedFiles' => sub { Link Here
185
185
186
    # add another one with TestBuilder and delete twice (file does not exist)
186
    # add another one with TestBuilder and delete twice (file does not exist)
187
    $upload01 = $builder->build({ source => 'UploadedFile' });
187
    $upload01 = $builder->build({ source => 'UploadedFile' });
188
    my $kohaobj = Koha::UploadedFiles->find( $upload01->{id} );
188
    $kohaobj = Koha::UploadedFiles->find( $upload01->{id} );
189
    $delete = $kohaobj->delete({ keep_file => 1 });
189
    $delete = $kohaobj->delete({ keep_file => 1 });
190
    $delete = $kohaobj->delete({ keep_file => 1 });
190
    $delete = $kohaobj->delete({ keep_file => 1 });
191
    ok( $delete =~ /^(0E0|-1)$/, 'Repeated delete unsuccessful' );
191
    ok( $delete =~ /^(0E0|-1)$/, 'Repeated delete unsuccessful' );
192
- 

Return to bug 17669