View | Details | Raw Unified | Return to bug 8446
Collapse All | Expand All

(-)a/t/Auth_with_shibboleth.t (-4 / +26 lines)
Lines 1-17 Link Here
1
#!/usr/bin/perl
1
#!/usr/bin/perl
2
3
# This file is part of Koha.
4
#
5
# Koha is free software; you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 3 of the License, or
8
# (at your option) any later version.
2
#
9
#
3
# Add more tests here!!!
10
# Koha is distributed in the hope that it will be useful, but
11
# WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with Koha; if not, see <http://www.gnu.org/licenses>.
4
17
5
use Modern::Perl;
18
use Modern::Perl;
6
19
7
use Test::More tests => 6;
20
use Module::Load::Conditional qw/check_install/;
21
use Test::More;
8
use Test::MockModule;
22
use Test::MockModule;
9
use Test::Warn;
23
use Test::Warn;
10
use Test::DBIx::Class {schema_class => 'Koha::Schema', connect_info => ['dbi:SQLite:dbname=:memory:','','']};
11
24
12
use CGI;
25
use CGI;
13
use C4::Context;
26
use C4::Context;
14
27
28
BEGIN {
29
    if ( check_install( module => 'Test::DBIx::Class' ) ) {
30
        plan tests => 6;
31
    } else {
32
        plan skip_all => "Need Test::DBIx::Class"
33
    }
34
}
35
36
use Test::DBIx::Class { schema_class => 'Koha::Schema', connect_info => ['dbi:SQLite:dbname=:memory:','',''] };
37
15
# Mock Variables
38
# Mock Variables
16
my $matchpoint = 'userid';
39
my $matchpoint = 'userid';
17
my %mapping = ( 'userid' => { 'is' => 'uid' }, );
40
my %mapping = ( 'userid' => { 'is' => 'uid' }, );
18
- 

Return to bug 8446