Lines 665-671
ok( exists( $suppliers{$id_supplier1} ),
Link Here
|
665 |
; |
665 |
; |
666 |
|
666 |
|
667 |
C4::Context->_new_userenv('DUMMY SESSION'); |
667 |
C4::Context->_new_userenv('DUMMY SESSION'); |
668 |
C4::Context::set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 0, '', ''); |
668 |
C4::Context->set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 0, '', ''); |
669 |
my $userenv = C4::Context->userenv; |
669 |
my $userenv = C4::Context->userenv; |
670 |
|
670 |
|
671 |
my $module = Test::MockModule->new('C4::Auth'); |
671 |
my $module = Test::MockModule->new('C4::Auth'); |
Lines 697-703
is(
Link Here
|
697 |
); |
697 |
); |
698 |
|
698 |
|
699 |
# don the cape and turn into Superlibrarian! |
699 |
# don the cape and turn into Superlibrarian! |
700 |
C4::Context::set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 1, '', ''); |
700 |
C4::Context->set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 1, '', ''); |
701 |
@subscriptions = SearchSubscriptions({expiration_date => '2013-12-31'}); |
701 |
@subscriptions = SearchSubscriptions({expiration_date => '2013-12-31'}); |
702 |
is( |
702 |
is( |
703 |
scalar(grep { !$_->{cannotdisplay} } @subscriptions ), |
703 |
scalar(grep { !$_->{cannotdisplay} } @subscriptions ), |