Koha/t/lib/KohaTest/ImportBatch/AddItemsToImportBiblio.pm
Andrew Moore 69a2b414ae test suite: C4::ImportBatch
Here are some tests for functions in C4::ImportBatch.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-12-22 11:43:07 -06:00

29 lines
584 B
Perl

package KohaTest::ImportBatch::getImportBatch;
use base qw( KohaTest::ImportBatch );
use strict;
use warnings;
use Test::More;
use C4::ImportBatch;
use C4::Matcher;
use C4::Biblio;
sub something : Test( 2 ) {
my $self = shift;
my $batch_id = $self->add_import_batch();
ok( $batch_id, 'we have a batch_id' );
my $import_record_id = 0;
my $marc_record = MARC::Record->new();
my @import_item_ids = C4::ImportBatch::AddItemsToImportBiblio( $batch_id, $import_record_id, $marc_record );
is( scalar( @import_item_ids ), 0, 'none inserted' );
}
1;