Lines 637-643
ok( exists( $suppliers{$id_supplier1} ),
Link Here
|
637 |
; |
637 |
; |
638 |
|
638 |
|
639 |
C4::Context->_new_userenv('DUMMY SESSION'); |
639 |
C4::Context->_new_userenv('DUMMY SESSION'); |
640 |
C4::Context::set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 0, '', ''); |
640 |
C4::Context->set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 0, '', ''); |
641 |
my $userenv = C4::Context->userenv; |
641 |
my $userenv = C4::Context->userenv; |
642 |
|
642 |
|
643 |
my $module = Test::MockModule->new('C4::Auth'); |
643 |
my $module = Test::MockModule->new('C4::Auth'); |
Lines 669-675
is(
Link Here
|
669 |
); |
669 |
); |
670 |
|
670 |
|
671 |
# don the cape and turn into Superlibrarian! |
671 |
# don the cape and turn into Superlibrarian! |
672 |
C4::Context::set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 1, '', ''); |
672 |
C4::Context->set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 1, '', ''); |
673 |
@subscriptions = SearchSubscriptions({expiration_date => '2013-12-31'}); |
673 |
@subscriptions = SearchSubscriptions({expiration_date => '2013-12-31'}); |
674 |
is( |
674 |
is( |
675 |
scalar(grep { !$_->{cannotdisplay} } @subscriptions ), |
675 |
scalar(grep { !$_->{cannotdisplay} } @subscriptions ), |