[Koha-bugs] [Bug 10289] UT: Reserves.t needs to create its own data

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 4 20:03:09 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10289

Jared Camins-Esakov <jcamins at cpbibliography.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Failed QA

--- Comment #2 from Jared Camins-Esakov <jcamins at cpbibliography.com> ---
This one does not work for me. I get the following output (with DEBUG on):

jcamins at kohadev:~/kohaclone$ perl t/db_dependent/Reserves.t 
1..4
ok 1 - use C4::Reserves;
# 
# Creating biblio instance for testing.
# Creating item instance for testing.
 INSERT INTO borrowers SET   borrowers.firstname = ? ,  borrowers.dateenrolled
= ? ,  borrowers.userid = ? ,  borrowers.categorycode = ? ,  borrowers.surname
= ? ,  borrowers.dateexpiry = ? ,  borrowers.password = ? , 
borrowers.cardnumber = ? ,  borrowers.branchcode = ? my
firstname,2013-06-04,myfirstname.mysurname,S,my
surname,2021-09-04,!,CARDNUMBER42,CPL at
/home/jcamins/kohaclone/C4/SQLHelper.pm line 182.
SELECT borrowers.*, categories.category_type, categories.description
    FROM borrowers 
    LEFT JOIN categories on borrowers.categorycode=categories.categorycode
WHERE borrowernumber = ? 75 at /home/jcamins/kohaclone/C4/Members.pm line 556.
SELECT borrowers.*, categories.category_type, categories.description
    FROM borrowers 
    LEFT JOIN categories on borrowers.categorycode=categories.categorycode
WHERE borrowernumber = ? 75 at /home/jcamins/kohaclone/C4/Members.pm line 556.
not ok 2 - CheckReserves Test 1
#   Failed test 'CheckReserves Test 1'
#   at t/db_dependent/Reserves.t line 66.
SELECT borrowers.*, categories.category_type, categories.description
    FROM borrowers 
    LEFT JOIN categories on borrowers.categorycode=categories.categorycode
WHERE borrowernumber = ? 75 at /home/jcamins/kohaclone/C4/Members.pm line 556.
not ok 3 - CheckReserves Test 2
#   Failed test 'CheckReserves Test 2'
#   at t/db_dependent/Reserves.t line 69.
SELECT borrowers.*, categories.category_type, categories.description
    FROM borrowers 
    LEFT JOIN categories on borrowers.categorycode=categories.categorycode
WHERE borrowernumber = ? 75 at /home/jcamins/kohaclone/C4/Members.pm line 556.
not ok 4 - CheckReserves Test 3
#   Failed test 'CheckReserves Test 3'
#   at t/db_dependent/Reserves.t line 72.
# Deleting item testing instance.
# Deleting biblio testing instance.
# Deleting borrower.
# Looks like you failed 3 tests of 4.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list