|
Lines 16-33
Link Here
|
| 16 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
16 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
| 17 |
|
17 |
|
| 18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
|
|
19 |
use Test::More; |
| 19 |
|
20 |
|
| 20 |
use Test::More tests => 9; |
|
|
| 21 |
use File::Temp; |
21 |
use File::Temp; |
| 22 |
use File::Path qw/make_path/; |
22 |
use File::Path qw/make_path/; |
| 23 |
|
23 |
|
| 24 |
use t::lib::Mocks; |
24 |
use t::lib::Mocks; |
| 25 |
|
25 |
|
|
|
26 |
use Module::Load::Conditional qw/check_install/; |
| 27 |
|
| 26 |
BEGIN { |
28 |
BEGIN { |
| 27 |
my $context_module = t::lib::Mocks::mock_dbh; |
29 |
if ( check_install( module => 'Test::DBIx::Class' ) ) { |
|
|
30 |
plan tests => 10; |
| 31 |
} else { |
| 32 |
plan skip_all => "Need Test::DBIx::Class" |
| 33 |
} |
| 34 |
|
| 28 |
use_ok('C4::XSLT'); |
35 |
use_ok('C4::XSLT'); |
| 29 |
}; |
36 |
}; |
| 30 |
|
37 |
|
|
|
38 |
use Test::DBIx::Class { |
| 39 |
schema_class => 'Koha::Schema', |
| 40 |
connect_info => ['dbi:SQLite:dbname=:memory:','',''], |
| 41 |
connect_opts => { name_sep => '.', quote_char => '`', }, |
| 42 |
fixture_class => '::Populate', |
| 43 |
}, 'Branch' ; |
| 44 |
|
| 45 |
fixtures_ok [ |
| 46 |
Branch => [ |
| 47 |
], |
| 48 |
]; |
| 49 |
|
| 50 |
|
| 31 |
my $dir = File::Temp->newdir(); |
51 |
my $dir = File::Temp->newdir(); |
| 32 |
my @themes = ('prog', 'test'); |
52 |
my @themes = ('prog', 'test'); |
| 33 |
my @langs = ('en', 'es-ES'); |
53 |
my @langs = ('en', 'es-ES'); |
| 34 |
- |
|
|