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

(-)a/t/db_dependent/Koha/Object.t (-3 / +2 lines)
Lines 157-166 subtest 'TO_JSON tests' => sub { Link Here
157
    my $lost = $patron->TO_JSON()->{lost};
157
    my $lost = $patron->TO_JSON()->{lost};
158
    my $gonenoaddress = $patron->TO_JSON->{gonenoaddress};
158
    my $gonenoaddress = $patron->TO_JSON->{gonenoaddress};
159
159
160
    ok( $lost->isa('Mojo::JSON::_Bool'), 'Boolean attribute type is correct' );
160
    ok( $lost->isa('JSON::PP::Boolean'), 'Boolean attribute type is correct' );
161
    is( $lost, 1, 'Boolean attribute value is correct (true)' );
161
    is( $lost, 1, 'Boolean attribute value is correct (true)' );
162
162
163
    ok( $gonenoaddress->isa('Mojo::JSON::_Bool'), 'Boolean attribute type is correct' );
163
    ok( $gonenoaddress->isa('JSON::PP::Boolean'), 'Boolean attribute type is correct' );
164
    is( $gonenoaddress, 0, 'Boolean attribute value is correct (false)' );
164
    is( $gonenoaddress, 0, 'Boolean attribute value is correct (false)' );
165
165
166
    ok( !isvstring($patron->borrowernumber), 'Integer values are not coded as strings' );
166
    ok( !isvstring($patron->borrowernumber), 'Integer values are not coded as strings' );
167
- 

Return to bug 18290