@@ -, +, @@ --------- -- It should work. -- It should work. -- They should both FAIL! -- The should both work. --- t/db_dependent/Bookseller.t | 4 ++-- t/db_dependent/Koha_template_plugin_Branches.t | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/t/db_dependent/Bookseller.t +++ a/t/db_dependent/Bookseller.t @@ -663,7 +663,7 @@ ok( exists( $suppliers{$id_supplier1} ), ; C4::Context->_new_userenv('DUMMY SESSION'); -C4::Context::set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 0, '', ''); +C4::Context->set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 0, '', ''); my $userenv = C4::Context->userenv; my $module = Test::MockModule->new('C4::Auth'); @@ -695,7 +695,7 @@ is( ); # don the cape and turn into Superlibrarian! -C4::Context::set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 1, '', ''); +C4::Context->set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 1, '', ''); @subscriptions = SearchSubscriptions({expiration_date => '2013-12-31'}); is( scalar(grep { !$_->{cannotdisplay} } @subscriptions ), --- a/t/db_dependent/Koha_template_plugin_Branches.t +++ a/t/db_dependent/Koha_template_plugin_Branches.t @@ -41,6 +41,6 @@ my $library = $plugin->GetLoggedInBranchcode(); is($library, '', 'no active library if there is no active user session'); C4::Context->_new_userenv('DUMMY_SESSION_ID'); -C4::Context::set_userenv(123, 'userid', 'usercnum', 'First name', 'Surname', 'MYLIBRARY', 'My Library', 0); +C4::Context->set_userenv(123, 'userid', 'usercnum', 'First name', 'Surname', 'MYLIBRARY', 'My Library', 0); $library = $plugin->GetLoggedInBranchcode(); is($library, 'MYLIBRARY', 'GetLoggedInBranchcode() returns active library'); --