|
Lines 138-143
subtest 'Permissions and access to plugin routes tests' => sub {
Link Here
|
| 138 |
# enable BASIC auth |
138 |
# enable BASIC auth |
| 139 |
t::lib::Mocks::mock_preference( 'RESTBasicAuth', 1 ); |
139 |
t::lib::Mocks::mock_preference( 'RESTBasicAuth', 1 ); |
| 140 |
|
140 |
|
|
|
141 |
# Silence warnings from unrelated plugins feature |
| 142 |
my $plugin_mock = Test::MockModule->new('Koha::Plugin::Test'); |
| 143 |
$plugin_mock->mock( 'patron_barcode_transform', undef ); |
| 144 |
|
| 141 |
# remove any existing plugins that might interfere |
145 |
# remove any existing plugins that might interfere |
| 142 |
Koha::Plugins::Methods->search->delete; |
146 |
Koha::Plugins::Methods->search->delete; |
| 143 |
my $plugins = Koha::Plugins->new; |
147 |
my $plugins = Koha::Plugins->new; |
| 144 |
- |
|
|