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

(-)a/t/db_dependent/api/v1/bookings.t (-4 / +33 lines)
Lines 194-200 subtest 'add() tests' => sub { Link Here
194
    my $librarian = $builder->build_object(
194
    my $librarian = $builder->build_object(
195
        {
195
        {
196
            class => 'Koha::Patrons',
196
            class => 'Koha::Patrons',
197
            value => { flags => 2**1 }    # circulate flag = 1
197
            value => { flags => 0 }     # no additional permissions
198
        }
199
    );
200
    $builder->build(
201
        {
202
            source => 'UserPermission',
203
            value  => {
204
                borrowernumber => $librarian->borrowernumber,
205
                module_bit     => 1,
206
                code           => 'manage_bookings',
207
            },
198
        }
208
        }
199
    );
209
    );
200
    my $password = 'thePassword123';
210
    my $password = 'thePassword123';
Lines 273-279 subtest 'update() tests' => sub { Link Here
273
    my $librarian = $builder->build_object(
283
    my $librarian = $builder->build_object(
274
        {
284
        {
275
            class => 'Koha::Patrons',
285
            class => 'Koha::Patrons',
276
            value => { flags => 2**1 }    # circulate flag = 1
286
            value => { flags => 0 }     # no additional permissions
287
        }
288
    );
289
    $builder->build(
290
        {
291
            source => 'UserPermission',
292
            value  => {
293
                borrowernumber => $librarian->borrowernumber,
294
                module_bit     => 1,
295
                code           => 'manage_bookings',
296
            },
277
        }
297
        }
278
    );
298
    );
279
    my $password = 'thePassword123';
299
    my $password = 'thePassword123';
Lines 371-377 subtest 'delete() tests' => sub { Link Here
371
    my $librarian = $builder->build_object(
391
    my $librarian = $builder->build_object(
372
        {
392
        {
373
            class => 'Koha::Patrons',
393
            class => 'Koha::Patrons',
374
            value => { flags => 2**1 }    # circulate flag = 1
394
            value => { flags => 0 }     # no additional permissions
395
        }
396
    );
397
    $builder->build(
398
        {
399
            source => 'UserPermission',
400
            value  => {
401
                borrowernumber => $librarian->borrowernumber,
402
                module_bit     => 1,
403
                code           => 'manage_bookings',
404
            },
375
        }
405
        }
376
    );
406
    );
377
    my $password = 'thePassword123';
407
    my $password = 'thePassword123';
378
- 

Return to bug 35468