Bug 26328: Add test
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
19fe56dcb9
commit
5960f44be1
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
use Modern::Perl;
|
||||
|
||||
use Test::More tests => 7;
|
||||
use Test::More tests => 9;
|
||||
use Test::MockModule;
|
||||
use t::lib::TestBuilder;
|
||||
|
||||
|
|
@ -81,5 +81,14 @@ ok(length($scr) > 0, 'hbyymmincr javascript');
|
|||
is($nextnum, '2012-0035', 'annual barcode');
|
||||
is($scr, undef, 'annual javascript');
|
||||
|
||||
$schema->storage->txn_rollback;
|
||||
$dbh->do(q|DELETE FROM items|);
|
||||
my $item_5 = $builder->build_sample_item(
|
||||
{
|
||||
barcode => '978e0143019375'
|
||||
}
|
||||
);
|
||||
($nextnum, $scr) = C4::Barcodes::ValueBuilder::incremental::get_barcode(\%args);
|
||||
is($nextnum, '979', 'incremental barcode');
|
||||
is($scr, undef, 'incremental javascript');
|
||||
|
||||
$schema->storage->txn_rollback;
|
||||
|
|
|
|||
Loading…
Reference in New Issue