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

(-)a/t/db_dependent/Illrequests.t (-2 / +14 lines)
Lines 37-43 use_ok('Koha::Illrequests'); Link Here
37
37
38
subtest 'Basic object tests' => sub {
38
subtest 'Basic object tests' => sub {
39
39
40
    plan tests => 22;
40
    plan tests => 24;
41
41
42
    $schema->storage->txn_begin;
42
    $schema->storage->txn_begin;
43
43
Lines 85-90 subtest 'Basic object tests' => sub { Link Here
85
    is($illrq_obj->backend, $illrq->{backend},
85
    is($illrq_obj->backend, $illrq->{backend},
86
       "Backend getter works.");
86
       "Backend getter works.");
87
87
88
    is($illrq_obj->getType, '<span>N/A</span>',
89
        'getType() returns placeholder if no type is set');
90
    $builder->build({
91
        source => 'Illrequestattribute',
92
        value  => {
93
            illrequest_id => $illrq_obj->illrequest_id,
94
            type => 'type',
95
            value => 'book'
96
        }
97
    });
98
    is($illrq_obj->getType, 'book',
99
        'getType() returns correct type if set');
100
88
    isnt($illrq_obj->status, 'COMP',
101
    isnt($illrq_obj->status, 'COMP',
89
         "ILL is not currently marked complete.");
102
         "ILL is not currently marked complete.");
90
    $illrq_obj->mark_completed;
103
    $illrq_obj->mark_completed;
91
- 

Return to bug 20941