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 => 21;
40
    plan tests => 23;
41
41
42
    $schema->storage->txn_begin;
42
    $schema->storage->txn_begin;
43
43
Lines 83-88 subtest 'Basic object tests' => sub { Link Here
83
    is($illrq_obj->backend, $illrq->{backend},
83
    is($illrq_obj->backend, $illrq->{backend},
84
       "Backend getter works.");
84
       "Backend getter works.");
85
85
86
    is($illrq_obj->getType, '<span>N/A</span>',
87
        'getType() returns placeholder if no type is set');
88
    $builder->build({
89
        source => 'Illrequestattribute',
90
        value  => {
91
            illrequest_id => $illrq_obj->illrequest_id,
92
            type => 'type',
93
            value => 'book'
94
        }
95
    });
96
    is($illrq_obj->getType, 'book',
97
        'getType() returns correct type if set');
98
86
    isnt($illrq_obj->status, 'COMP',
99
    isnt($illrq_obj->status, 'COMP',
87
         "ILL is not currently marked complete.");
100
         "ILL is not currently marked complete.");
88
    $illrq_obj->mark_completed;
101
    $illrq_obj->mark_completed;
89
- 

Return to bug 20941