bug 2295 [4/4]: moving C4::Labels tests into t/lib/KohaTest
t/Labels.t was dependent on a working test database, so I'm moving those tests into t/lib/KohaTest Signed-off-by: Galen Charlton <galen.charlton@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
e11d540725
commit
acefbf97a2
14
t/Labels.t
14
t/Labels.t
|
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
#
|
||||
# This Koha test module is a stub!
|
||||
# Add more tests here!!!
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More tests => 1;
|
||||
|
||||
BEGIN {
|
||||
use_ok('C4::Labels');
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package KohaTest::Labels;
|
||||
use base qw( KohaTest );
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More;
|
||||
|
||||
use C4::Labels;
|
||||
sub testing_class { 'C4::Labels' }
|
||||
|
||||
sub methods : Test( 1 ) {
|
||||
my $self = shift;
|
||||
my @methods = qw(
|
||||
|
||||
get_label_options
|
||||
get_layouts
|
||||
get_layout
|
||||
get_active_layout
|
||||
delete_layout
|
||||
get_printingtypes
|
||||
build_text_dropbox
|
||||
get_text_fields
|
||||
add_batch
|
||||
get_highest_batch
|
||||
get_batches
|
||||
delete_batch
|
||||
get_barcode_types
|
||||
GetUnitsValue
|
||||
GetTextWrapCols
|
||||
GetActiveLabelTemplate
|
||||
GetSingleLabelTemplate
|
||||
SetActiveTemplate
|
||||
set_active_layout
|
||||
DeleteTemplate
|
||||
SaveTemplate
|
||||
CreateTemplate
|
||||
GetAllLabelTemplates
|
||||
add_layout
|
||||
save_layout
|
||||
GetAllPrinterProfiles
|
||||
GetSinglePrinterProfile
|
||||
SaveProfile
|
||||
CreateProfile
|
||||
DeleteProfile
|
||||
GetAssociatedProfile
|
||||
SetAssociatedProfile
|
||||
GetLabelItems
|
||||
GetItemFields
|
||||
GetBarcodeData
|
||||
_descKohaTables
|
||||
GetPatronCardItems
|
||||
deduplicate_batch
|
||||
DrawSpineText
|
||||
PrintText
|
||||
DrawPatronCardText
|
||||
DrawBarcode
|
||||
build_circ_barcode
|
||||
draw_boundaries
|
||||
drawbox
|
||||
);
|
||||
|
||||
can_ok( $self->testing_class, @methods );
|
||||
}
|
||||
|
||||
1;
|
||||
Loading…
Reference in New Issue