[Koha-patches] [PATCH] updated DB-dependent tests to reflect labels rewrite

Galen Charlton gmcharlt at gmail.com
Tue Sep 15 14:59:11 CEST 2009


* 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 <gmcharlt at gmail.com>
---
 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 887eea4..ded9c12 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 486ccb3..0000000
--- 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;
-- 
1.6.3.3




More information about the Koha-patches mailing list