|
Lines 642-648
ok( exists( $suppliers{$id_supplier1} ),
Link Here
|
| 642 |
; |
642 |
; |
| 643 |
|
643 |
|
| 644 |
C4::Context->_new_userenv('DUMMY SESSION'); |
644 |
C4::Context->_new_userenv('DUMMY SESSION'); |
| 645 |
C4::Context::set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 0, '', ''); |
645 |
C4::Context->set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 0, '', ''); |
| 646 |
my $userenv = C4::Context->userenv; |
646 |
my $userenv = C4::Context->userenv; |
| 647 |
|
647 |
|
| 648 |
my $module = Test::MockModule->new('C4::Auth'); |
648 |
my $module = Test::MockModule->new('C4::Auth'); |
|
Lines 674-680
is(
Link Here
|
| 674 |
); |
674 |
); |
| 675 |
|
675 |
|
| 676 |
# don the cape and turn into Superlibrarian! |
676 |
# don the cape and turn into Superlibrarian! |
| 677 |
C4::Context::set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 1, '', ''); |
677 |
C4::Context->set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 1, '', ''); |
| 678 |
@subscriptions = SearchSubscriptions({expiration_date => '2013-12-31'}); |
678 |
@subscriptions = SearchSubscriptions({expiration_date => '2013-12-31'}); |
| 679 |
is( |
679 |
is( |
| 680 |
scalar(grep { !$_->{cannotdisplay} } @subscriptions ), |
680 |
scalar(grep { !$_->{cannotdisplay} } @subscriptions ), |