]> git.koha-community.org Git - koha.git/commit
Bug 18807: Fix tests www/batch.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 14 Jun 2017 19:56:13 +0000 (16:56 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 27 Jun 2017 22:09:45 +0000 (00:09 +0200)
commit7df38cc175a468b2ff454b223b0ebaa82977b9e4
treebd4784b83ac585c62e59ae1f99362aa0cb94f4b0
parent0537ff3c863e8b62d175015c4446eea0856bc412
Bug 18807: Fix tests www/batch.t

Several things are wrong here:
1. It assumes that import_record_id is the biblionumber
=> Wrong, it is only true when the DB is empty and that the 2 AI equal 1
2. The encoding in the template is 'UTF-8', not 'utf8', it leaded to
  "stage-marc-import.pl: marc21record.mrc: Unexpected charset UTF-8, expecting utf8"
3. We did not test that the biblio was correctly imported

Test plan:
Make sure the tests now pass.
For the www tests you need to set the following env vars:
KOHA_USER, KOHA_PASS, KOHA_INTRANET_URL and KOHA_OPAC_URL

Signed-off-by: Lee Jamison <ldjamison@marywood.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 768c5758a2bb34876528e64edbb9d651942668c9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 92fee49448f9bc68ad6884d5600bbba94caae547)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/db_dependent/www/batch.t