]> git.koha-community.org Git - koha.git/commit
Bug 9735: Unit tests for get_template_and_user (cookies handling)
authorTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 9 Sep 2013 14:02:01 +0000 (11:02 -0300)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 4 Oct 2013 03:27:08 +0000 (03:27 +0000)
commitf9068d5938b2d86d425f703c08b7789c2f1fc613
tree16374a48d22d9b8b2a65151783155d93389a4d54
parent4cb139b9cecf33e10fb2fdc0ea6839dabd683d55
Bug 9735: Unit tests for get_template_and_user (cookies handling)

Galen found a case where the cookies array was not built flat. I add a
unit test for that (check the cookie array is flat) and also test the
cookies output of get_template_and_user so we are sure the &language=
parameter is correctly handled.

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
- Tests in t/db_dependent/Auth.t pass
- Tested in intranet, OPAC logged in, OPAC logged out
  * Adding a valid language code to the URL switches the language
    as expected
  * Adding an invalid language code causes no change

Nice feature!

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Auth.t