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