3 # This Koha test module is a stub!
4 # Add more tests here!!!
9 use Test::More tests => 2;
12 use_ok('C4::Letters');
15 my $module = new Test::MockModule('C4::Context');
19 my $dbh = DBI->connect( 'DBI:Mock:', '', '' )
20 || die "Cannot create handle: $DBI::errstr\n";
25 [ 'module', 'code', 'branchcode', 'name', 'is_html', 'title', 'content' ],
26 [ 'blah', 'ISBN', 'NBSI', 'book', 1, 'green', 'blahblah' ],
27 [ 'bleh', 'ISSN', 'NSSI', 'page', 0, 'blue', 'blehbleh' ]
30 my $dbh = C4::Context->dbh();
32 $dbh->{mock_add_resultset} = $mock_letters;
34 my $letters = C4::Letters::GetLetters();
36 is( $letters->{ISBN}, 'book', 'HASH ref of ISBN is book' );