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

(-)a/t/Koha/Email.t (-2 / +1 lines)
Lines 259-268 subtest 'is_valid' => sub { Link Here
259
    is(Koha::Email->is_valid('Fróm <from@example.com>'), 1);
259
    is(Koha::Email->is_valid('Fróm <from@example.com>'), 1);
260
    is(Koha::Email->is_valid('from@example.com'), 1);
260
    is(Koha::Email->is_valid('from@example.com'), 1);
261
    is(Koha::Email->is_valid('<from@example.com>'), 1);
261
    is(Koha::Email->is_valid('<from@example.com>'), 1);
262
    is(Koha::Email->is_valid('root@localhost'), 1); # See bug 28017
262
263
263
    is(Koha::Email->is_valid('<from@fróm.com>'), 0); # "In accordance with RFC 822 and its descendants, this module demands that email addresses be ASCII only"
264
    is(Koha::Email->is_valid('<from@fróm.com>'), 0); # "In accordance with RFC 822 and its descendants, this module demands that email addresses be ASCII only"
264
    isnt(Koha::Email->is_valid('@example.com'), 1);
265
    isnt(Koha::Email->is_valid('@example.com'), 1);
265
    isnt(Koha::Email->is_valid('example.com'), 1);
266
    isnt(Koha::Email->is_valid('example.com'), 1);
266
    isnt(Koha::Email->is_valid('root@localhost'), 1);
267
    isnt(Koha::Email->is_valid('from'), 1);
267
    isnt(Koha::Email->is_valid('from'), 1);
268
};
268
};
269
- 

Return to bug 28870