[Koha-bugs] [Bug 10895] Tests for C4::Items GetHiddenItems

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 31 21:01:40 CET 2013


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

--- Comment #15 from M. Tompsett <mtompset at hotmail.com> ---
Remember that 10589 and 10900 are dependencies for this test.
This is how I tested it:

mtompset at ubuntu:~/kohaclone$ git reset --hard origin/master                HEAD
is now at 7c521a8 Bug 8435: (follow-up) prevent t/00-load.t failing
mtompset at ubuntu:~/kohaclone$ git bz apply 10900                            Bug
10900 - Incorrect calling conventions accessing C4::Context

22585 - Bug 10900 - Incorrect calling conventions accessing C4::Context

Apply? [(y)es, (n)o, (i)nteractive] y
Applying: Bug 10900 - Incorrect calling conventions accessing C4::Context
mtompset at ubuntu:~/kohaclone$ git bz apply 10589                            Bug
10589 - Override OpacHiddenItems based on Patron Category

22629 - Bug 10589 - Override OpacHiddenItems based on Patron Category

Apply? [(y)es, (n)o, (i)nteractive] y
Applying: Bug 10589 - Override OpacHiddenItems based on Patron Category
mtompset at ubuntu:~/kohaclone$ git bz apply 10895                            Bug
10895 - Tests for C4::Items GetHiddenItems

22660 - Bug 10895 - Tests for C4::Items GetHiddenItems

Apply? [(y)es, (n)o, (i)nteractive] y
Applying: Bug 10895 - Tests for C4::Items GetHiddenItems
mtompset at ubuntu:~/kohaclone$ prove -v
t/db_dependent/GetHiddenItems_PatronCategory.t
t/db_dependent/GetHiddenItems_PatronCategory.t ..
1..22
ok 1 - use C4::Items;
ok 2 - LIB1 Item linked to correct biblionumber.
ok 3 - LIB1 Item linked to correct biblioitemnumber.
ok 4 - LIB2 Item linked to correct biblionumber.
ok 5 - LIB2 Item linked to correct biblioitemnumber.
$VAR1 = {
          'firstname' => 'Sample',
          'userid' => 'Sample.Borrower',
          'categorycode' => 'PT',
          'phone' => '967-1111',
          'zipcode' => 'H0H 0H0',
          'surname' => 'Borrower',
          'email' => 'santa at northpole.com',
          'city' => 'Bogusville',
          'address' => '123 Bogus Street',
          'branchcode' => 'LIB1'
        };
# Sample Borrower added.
CHECK: 4
IInDuWYkdr
# 7 - LIB1
# 8 - LIB2
ok 6 - OpacHiddenItems hid everything correctly.
# 7,8
# Borrower number: 4
# Sample Borrower environment variables set up.
ok 7 - OpacHiddenItems unhid everything correctly.
# PatronSingleBranch: SPT
# PatronEveryBranch: SPT
#
ok 8 - OpacHiddenItems hid LIB2 correctly.
# PatronSingleBranch: SPT
# PatronEveryBranch: SS
# 8
ok 9 - OpacHiddenItems hid LIB2 correctly.
# PatronSingleBranch: SPT
# PatronEveryBranch: ''
# 8
ok 10 - OpacHiddenItems unhid everything correctly.
# PatronSingleBranch: SPT
# PatronEveryBranch: SS|SPT
#
ok 11 - OpacHiddenItems unhid everything correctly.
# PatronSingleBranch: SS
# PatronEveryBranch: SPT
#
ok 12 - OpacHiddenItems hid everything correctly.
# PatronSingleBranch: SS
# PatronEveryBranch: SS
# 7,8
ok 13 - OpacHiddenItems hid everything correctly.
# PatronSingleBranch: SS
# PatronEveryBranch: ''
# 7,8
ok 14 - OpacHiddenItems unhid everything correctly.
# PatronSingleBranch: SS
# PatronEveryBranch: SS|SPT
#
ok 15 - OpacHiddenItems unhid everything correctly.
# PatronSingleBranch: ''
# PatronEveryBranch: SPT
#
ok 16 - OpacHiddenItems hid everything correctly.
# PatronSingleBranch: ''
# PatronEveryBranch: SS
# 7,8
ok 17 - OpacHiddenItems hid everything correctly.
# PatronSingleBranch: ''
# PatronEveryBranch: ''
# 7,8
ok 18 - OpacHiddenItems unhid everything correctly.
# PatronSingleBranch: ''
# PatronEveryBranch: SS|SPT
#
ok 19 - OpacHiddenItems unhid everything correctly.
# PatronSingleBranch: SS|SPT
# PatronEveryBranch: SPT
#
ok 20 - OpacHiddenItems hid LIB2 correctly.
# PatronSingleBranch: SS|SPT
# PatronEveryBranch: SS
# 8
ok 21 - OpacHiddenItems hid LIB2 correctly.
# PatronSingleBranch: SS|SPT
# PatronEveryBranch: ''
# 8
ok 22 - OpacHiddenItems unhid everything correctly.
# PatronSingleBranch: SS|SPT
# PatronEveryBranch: SS|SPT
#
ok
All tests successful.
Files=1, Tests=22,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.40 cusr  0.02
csys =  0.45 CPU)
Result: PASS
mtompset at ubuntu:~/kohaclone$ ~/qa-test-tools/koha-qa.pl -v 2 -c 1
testing 1 commit(s) (applied to c9dadf4 'Bug 10589 - Override OpacHiddenItems
')

 OK     t/db_dependent/GetHiddenItems_PatronCategory.t
   OK     pod
   OK     forbidden patterns
   OK     valid
   OK     critic

mtompset at ubuntu:~/kohaclone$

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


More information about the Koha-bugs mailing list