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