bug 2295 [4/4]: moving C4::Labels tests into t/lib/KohaTest
[koha.git] / t / lib / KohaTest / Labels.pm
1 package KohaTest::Labels;
2 use base qw( KohaTest );
3
4 use strict;
5 use warnings;
6
7 use Test::More;
8
9 use C4::Labels;
10 sub testing_class { 'C4::Labels' }
11
12 sub methods : Test( 1 ) {
13     my $self    = shift;
14     my @methods = qw(
15
16       get_label_options
17       get_layouts
18       get_layout
19       get_active_layout
20       delete_layout
21       get_printingtypes
22       build_text_dropbox
23       get_text_fields
24       add_batch
25       get_highest_batch
26       get_batches
27       delete_batch
28       get_barcode_types
29       GetUnitsValue
30       GetTextWrapCols
31       GetActiveLabelTemplate
32       GetSingleLabelTemplate
33       SetActiveTemplate
34       set_active_layout
35       DeleteTemplate
36       SaveTemplate
37       CreateTemplate
38       GetAllLabelTemplates
39       add_layout
40       save_layout
41       GetAllPrinterProfiles
42       GetSinglePrinterProfile
43       SaveProfile
44       CreateProfile
45       DeleteProfile
46       GetAssociatedProfile
47       SetAssociatedProfile
48       GetLabelItems
49       GetItemFields
50       GetBarcodeData
51       _descKohaTables
52       GetPatronCardItems
53       deduplicate_batch
54       DrawSpineText
55       PrintText
56       DrawPatronCardText
57       DrawBarcode
58       build_circ_barcode
59       draw_boundaries
60       drawbox
61     );
62
63     can_ok( $self->testing_class, @methods );
64 }
65
66 1;