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