https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24003
--- Comment #1 from Lari Taskula <[email protected]> --- Created attachment 95228 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95228&action=edit Bug 24003: Add a failing test for missing userenv for REST basic auth When using REST API via basic authentication method, C4::Context->userenv returns undef. This patch adds a failing test to prove it. To test: 1. prove t/db_dependent/api/v1/auth_basic.t 2. Observe failures: not ok 5 - exact match for JSON Pointer "/userenv/number" Failed test 'exact match for JSON Pointer "/userenv/number"' at t/db_dependent/api/v1/auth_basic.t line 52. got: undef expected: '1054' not ok 6 - exact match for JSON Pointer "/userenv/id" Failed test 'exact match for JSON Pointer "/userenv/id"' at t/db_dependent/api/v1/auth_basic.t line 52. got: undef expected: 'tomasito' -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
