From 8b296fc7783167c621c70190dbcf602d8e40e4a7 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 15 Sep 2009 08:57:53 -0400 Subject: [PATCH] updated DB-dependent tests to reflect labels rewrite * removed lib/KohaTest/Labels.pm, which is now completely outdated * updated list of database tables to truncate in lib/KohaTest.pm Signed-off-by: Galen Charlton --- t/lib/KohaTest.pm | 105 ++------------------------------------- t/lib/KohaTest/Labels.pm | 66 ------------------------ 2 files changed, 3 insertions(+), 168 deletions(-) delete mode 100644 t/lib/KohaTest/Labels.pm diff --git a/t/lib/KohaTest.pm b/t/lib/KohaTest.pm index 887eea415b..ded9c1251a 100644 --- a/t/lib/KohaTest.pm +++ b/t/lib/KohaTest.pm @@ -83,106 +83,6 @@ these are run once, at the beginning of the whole test suite sub startup_15_truncate_tables : Test( startup => 1 ) { my $self = shift; -# my @truncate_tables = qw( accountlines -# accountoffsets -# action_logs -# alert -# aqbasket -# aqbookfund -# aqbooksellers -# aqbudget -# aqorderbreakdown -# aqorderdelivery -# aqorders -# auth_header -# auth_subfield_structure -# auth_tag_structure -# auth_types -# authorised_values -# biblio -# biblio_framework -# biblioitems -# borrowers -# branchcategories -# branches -# branchrelations -# branchtransfers -# browser -# categories -# cities -# class_sort_rules -# class_sources -# currency -# deletedbiblio -# deletedbiblioitems -# deletedborrowers -# deleteditems -# ethnicity -# import_batches -# import_biblios -# import_items -# import_record_matches -# import_records -# issues -# issuingrules -# items -# itemtypes -# labels -# labels_conf -# labels_profile -# labels_templates -# language_descriptions -# language_rfc4646_to_iso639 -# language_script_bidi -# language_script_mapping -# language_subtag_registry -# letter -# marc_matchers -# marc_subfield_structure -# marc_tag_structure -# matchchecks -# matcher_matchpoints -# matchpoint_component_norms -# matchpoint_components -# matchpoints -# notifys -# nozebra -# old_issues -# old_reserves -# opac_news -# overduerules -# patroncards -# patronimage -# printers -# printers_profile -# repeatable_holidays -# reports_dictionary -# reserveconstraints -# reserves -# reviews -# roadtype -# saved_reports -# saved_sql -# serial -# serialitems -# services_throttle -# sessions -# special_holidays -# statistics -# stopwords -# subscription -# subscriptionhistory -# subscriptionroutinglist -# suggestions -# systempreferences -# tags -# userflags -# virtualshelfcontents -# virtualshelves -# z3950servers -# zebraqueue -# ); - my @truncate_tables = qw( accountlines accountoffsets alert @@ -204,8 +104,9 @@ sub startup_15_truncate_tables : Test( startup => 1 ) { ethnicity issues issuingrules - labels - labels_profile + labels_batches + labels_layouts + labels_templates matchchecks notifys nozebra diff --git a/t/lib/KohaTest/Labels.pm b/t/lib/KohaTest/Labels.pm deleted file mode 100644 index 486ccb3892..0000000000 --- a/t/lib/KohaTest/Labels.pm +++ /dev/null @@ -1,66 +0,0 @@ -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; -- 2.39.5