Bug 18807: Fix tests www/batch.t
commit92fee49448f9bc68ad6884d5600bbba94caae547
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 14 Jun 2017 19:56:13 +0000 (14 16:56 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 27 Jun 2017 15:09:03 +0000 (27 17:09 +0200)
tree6115e14b3ad78b39c7bb4b1d5e1ab940675f5730
parenteafd2e7299e3db30d0d84d084fa5e49de60fa748
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>
t/db_dependent/www/batch.t