Lines 71-77
subtest 'all() tests' => sub {
Link Here
|
71 |
is($plugin->GetLoggedInBranchcode(), '', 'no active library code if there is no active user session'); |
71 |
is($plugin->GetLoggedInBranchcode(), '', 'no active library code if there is no active user session'); |
72 |
is($plugin->GetLoggedInBranchname(), '', 'no active library name if there is no active user session'); |
72 |
is($plugin->GetLoggedInBranchname(), '', 'no active library name if there is no active user session'); |
73 |
|
73 |
|
74 |
t::lib::Mocks::mock_userenv({ branchcode => 'MYLIBRARY' }); |
74 |
t::lib::Mocks::mock_userenv({ branchcode => 'MYLIBRARY', branchname => 'My sweet library' }); |
75 |
is($plugin->GetLoggedInBranchcode(), 'MYLIBRARY', 'GetLoggedInBranchcode() returns active library code'); |
75 |
is($plugin->GetLoggedInBranchcode(), 'MYLIBRARY', 'GetLoggedInBranchcode() returns active library code'); |
76 |
is($plugin->GetLoggedInBranchname(), 'My sweet library', 'GetLoggedInBranchname() returns active library name'); |
76 |
is($plugin->GetLoggedInBranchname(), 'My sweet library', 'GetLoggedInBranchname() returns active library name'); |
77 |
|
77 |
|
78 |
- |
|
|