Lines 1-15
Link Here
|
1 |
use Modern::Perl; |
1 |
use Modern::Perl; |
2 |
use Test::More tests => 8; |
2 |
use Test::More tests => 12; |
3 |
use Test::MockModule; |
3 |
use Test::MockModule; |
4 |
|
4 |
|
5 |
use C4::Acquisition; |
|
|
6 |
use C4::Bookseller; |
7 |
use C4::Context; |
8 |
|
9 |
use Koha::Number::Price; |
10 |
|
11 |
use t::lib::Mocks; |
5 |
use t::lib::Mocks; |
12 |
|
6 |
|
|
|
7 |
BEGIN { |
8 |
my $context_module = t::lib::Mocks::mock_dbh; |
9 |
use_ok('C4::Acquisition'); |
10 |
use_ok('C4::Bookseller'); |
11 |
use_ok('C4::Context'); |
12 |
use_ok('Koha::Number::Price'); |
13 |
}; |
14 |
|
13 |
t::lib::Mocks::mock_preference( 'gist', '0.02|0.05|0.196' ); |
15 |
t::lib::Mocks::mock_preference( 'gist', '0.02|0.05|0.196' ); |
14 |
|
16 |
|
15 |
my $bookseller_module = Test::MockModule->new('Koha::Acquisition::Bookseller'); |
17 |
my $bookseller_module = Test::MockModule->new('Koha::Acquisition::Bookseller'); |
16 |
- |
|
|