|
Lines 28-33
BEGIN {
Link Here
|
| 28 |
); |
28 |
); |
| 29 |
} |
29 |
} |
| 30 |
|
30 |
|
|
|
31 |
my $builder = t::lib::TestBuilder->new(); |
| 32 |
t::lib::Mocks::mock_userenv( { patron => $builder->build_object( { class => 'Koha::Patrons', } ) } ); |
| 33 |
|
| 31 |
# Auth required for cataloguing plugins |
34 |
# Auth required for cataloguing plugins |
| 32 |
my $mAuth = Test::MockModule->new('C4::Auth'); |
35 |
my $mAuth = Test::MockModule->new('C4::Auth'); |
| 33 |
$mAuth->mock( 'check_cookie_auth', sub { return ('ok') } ); |
36 |
$mAuth->mock( 'check_cookie_auth', sub { return ('ok') } ); |
|
Lines 38-45
my $dbh = C4::Context->dbh;
Link Here
|
| 38 |
|
41 |
|
| 39 |
$dbh->do('DELETE FROM subscription'); |
42 |
$dbh->do('DELETE FROM subscription'); |
| 40 |
|
43 |
|
| 41 |
my $builder = t::lib::TestBuilder->new(); |
|
|
| 42 |
|
| 43 |
# This could/should be used for all untested methods |
44 |
# This could/should be used for all untested methods |
| 44 |
my @methods = ('updateClaim'); |
45 |
my @methods = ('updateClaim'); |
| 45 |
can_ok( 'C4::Serials', @methods ); |
46 |
can_ok( 'C4::Serials', @methods ); |
| 46 |
- |
|
|