Bug 5327: More basic unit tests for C4 modules
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 31 Oct 2010 22:25:46 +0000 (18:25 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 1 Nov 2010 02:35:50 +0000 (15:35 +1300)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
35 files changed:
t/AuthoritiesMarc_MARC21.t [new file with mode: 0755]
t/AuthoritiesMarc_UNIMARC.t [new file with mode: 0755]
t/Barcodes_annual.t [new file with mode: 0755]
t/Barcodes_hbyymmincr.t [new file with mode: 0755]
t/Barcodes_incremental.t [new file with mode: 0755]
t/Cache_FastMemcached.t [new file with mode: 0755]
t/Cache_Memcached.t [new file with mode: 0755]
t/Cache_Memoize_Memcached.t [new file with mode: 0755]
t/ClassSortRoutine_Dewey.t [new file with mode: 0755]
t/ClassSortRoutine_Generic.t [new file with mode: 0755]
t/ClassSortRoutine_LCC.t [new file with mode: 0755]
t/External_BakerTaylor.t [new file with mode: 0755]
t/External_Syndetics.t [new file with mode: 0755]
t/Form_MessagingPreferences.t [new file with mode: 0755]
t/Heading_MARC21.t [new file with mode: 0755]
t/ILSDI_Services.t [new file with mode: 0755]
t/ILSDI_Utility.t [new file with mode: 0755]
t/Installer_PerlDependencies.t [new file with mode: 0755]
t/Installer_PerlModules.t [new file with mode: 0755]
t/Members_AttributeTypes.t [new file with mode: 0755]
t/Members_Messaging.t [new file with mode: 0755]
t/Output_JSONStream.t [new file with mode: 0755]
t/Patroncards_Batch.t [new file with mode: 0755]
t/Patroncards_Layout.t [new file with mode: 0755]
t/Patroncards_Lib.t [new file with mode: 0755]
t/Patroncards_Patroncard.t [new file with mode: 0755]
t/Patroncards_Profile.t [new file with mode: 0755]
t/Patroncards_Template.t [new file with mode: 0755]
t/Reports_Guided.t [new file with mode: 0755]
t/SIP_ILS.t [new file with mode: 0755]
t/SIP_SIPServer.t [new file with mode: 0755]
t/SIP_Sip.t [new file with mode: 0755]
t/Search_PazPar2.t [new file with mode: 0755]
t/VirtualShelves_Merge.t [new file with mode: 0755]
t/VirtualShelves_Page.t [new file with mode: 0755]

diff --git a/t/AuthoritiesMarc_MARC21.t b/t/AuthoritiesMarc_MARC21.t
new file mode 100755 (executable)
index 0000000..d83534a
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::AuthoritiesMarc::MARC21');
+}
+
diff --git a/t/AuthoritiesMarc_UNIMARC.t b/t/AuthoritiesMarc_UNIMARC.t
new file mode 100755 (executable)
index 0000000..0a55cd6
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::AuthoritiesMarc::UNIMARC');
+}
+
diff --git a/t/Barcodes_annual.t b/t/Barcodes_annual.t
new file mode 100755 (executable)
index 0000000..b89d207
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Barcodes::annual');
+}
+
diff --git a/t/Barcodes_hbyymmincr.t b/t/Barcodes_hbyymmincr.t
new file mode 100755 (executable)
index 0000000..a2377d3
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Barcodes::hbyymmincr');
+}
+
diff --git a/t/Barcodes_incremental.t b/t/Barcodes_incremental.t
new file mode 100755 (executable)
index 0000000..1bde5d3
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Barcodes::incremental');
+}
+
diff --git a/t/Cache_FastMemcached.t b/t/Cache_FastMemcached.t
new file mode 100755 (executable)
index 0000000..589e9b1
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Cache::FastMemcached');
+}
+
diff --git a/t/Cache_Memcached.t b/t/Cache_Memcached.t
new file mode 100755 (executable)
index 0000000..80dfc7f
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Cache::Memcached');
+}
+
diff --git a/t/Cache_Memoize_Memcached.t b/t/Cache_Memoize_Memcached.t
new file mode 100755 (executable)
index 0000000..13e26e5
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Cache::Memoize::Memcached');
+}
+
diff --git a/t/ClassSortRoutine_Dewey.t b/t/ClassSortRoutine_Dewey.t
new file mode 100755 (executable)
index 0000000..a2d3dc1
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::ClassSortRoutine::Dewey');
+}
+
diff --git a/t/ClassSortRoutine_Generic.t b/t/ClassSortRoutine_Generic.t
new file mode 100755 (executable)
index 0000000..d627259
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::ClassSortRoutine::Generic');
+}
+
diff --git a/t/ClassSortRoutine_LCC.t b/t/ClassSortRoutine_LCC.t
new file mode 100755 (executable)
index 0000000..9a5e007
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::ClassSortRoutine::LCC');
+}
+
diff --git a/t/External_BakerTaylor.t b/t/External_BakerTaylor.t
new file mode 100755 (executable)
index 0000000..fdccaee
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::External::BakerTaylor');
+}
+
diff --git a/t/External_Syndetics.t b/t/External_Syndetics.t
new file mode 100755 (executable)
index 0000000..e335c74
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::External::Syndetics');
+}
+
diff --git a/t/Form_MessagingPreferences.t b/t/Form_MessagingPreferences.t
new file mode 100755 (executable)
index 0000000..483e133
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Form::MessagingPreferences');
+}
+
diff --git a/t/Heading_MARC21.t b/t/Heading_MARC21.t
new file mode 100755 (executable)
index 0000000..a0ca21b
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::External::Amazon');
+}
+
diff --git a/t/ILSDI_Services.t b/t/ILSDI_Services.t
new file mode 100755 (executable)
index 0000000..99476d3
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::ILSDI::Services');
+}
+
diff --git a/t/ILSDI_Utility.t b/t/ILSDI_Utility.t
new file mode 100755 (executable)
index 0000000..c06209b
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::ILSDI::Utility');
+}
+
diff --git a/t/Installer_PerlDependencies.t b/t/Installer_PerlDependencies.t
new file mode 100755 (executable)
index 0000000..45dc1f1
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Installer::PerlDependencies');
+}
+
diff --git a/t/Installer_PerlModules.t b/t/Installer_PerlModules.t
new file mode 100755 (executable)
index 0000000..561d84c
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Installer::PerlModules');
+}
+
diff --git a/t/Members_AttributeTypes.t b/t/Members_AttributeTypes.t
new file mode 100755 (executable)
index 0000000..9dfc6c3
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Members::AttributeTypes');
+}
+
diff --git a/t/Members_Messaging.t b/t/Members_Messaging.t
new file mode 100755 (executable)
index 0000000..9395008
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Members::Messaging');
+}
+
diff --git a/t/Output_JSONStream.t b/t/Output_JSONStream.t
new file mode 100755 (executable)
index 0000000..2ee22fe
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Output::JSONStream');
+}
+
diff --git a/t/Patroncards_Batch.t b/t/Patroncards_Batch.t
new file mode 100755 (executable)
index 0000000..a0743ff
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Patroncards::Batch');
+}
+
diff --git a/t/Patroncards_Layout.t b/t/Patroncards_Layout.t
new file mode 100755 (executable)
index 0000000..fe68761
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Patroncards::Layout');
+}
+
diff --git a/t/Patroncards_Lib.t b/t/Patroncards_Lib.t
new file mode 100755 (executable)
index 0000000..88154a6
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Patroncards::Lib');
+}
+
diff --git a/t/Patroncards_Patroncard.t b/t/Patroncards_Patroncard.t
new file mode 100755 (executable)
index 0000000..8868350
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Patroncards::Patroncard');
+}
+
diff --git a/t/Patroncards_Profile.t b/t/Patroncards_Profile.t
new file mode 100755 (executable)
index 0000000..78cb6cf
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Patroncards::Profile');
+}
+
diff --git a/t/Patroncards_Template.t b/t/Patroncards_Template.t
new file mode 100755 (executable)
index 0000000..a781e0c
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Patroncards::Template');
+}
+
diff --git a/t/Reports_Guided.t b/t/Reports_Guided.t
new file mode 100755 (executable)
index 0000000..0b0cda6
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Reports::Guided');
+}
+
diff --git a/t/SIP_ILS.t b/t/SIP_ILS.t
new file mode 100755 (executable)
index 0000000..38e9ebd
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::SIP::ILS');
+}
+
diff --git a/t/SIP_SIPServer.t b/t/SIP_SIPServer.t
new file mode 100755 (executable)
index 0000000..48a0a9f
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::SIP::SIPServer');
+}
+
diff --git a/t/SIP_Sip.t b/t/SIP_Sip.t
new file mode 100755 (executable)
index 0000000..6db6acf
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::SIP::Sip');
+}
+
diff --git a/t/Search_PazPar2.t b/t/Search_PazPar2.t
new file mode 100755 (executable)
index 0000000..8d51720
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::Search::PazPar2');
+}
+
diff --git a/t/VirtualShelves_Merge.t b/t/VirtualShelves_Merge.t
new file mode 100755 (executable)
index 0000000..954fdc4
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::VirtualShelves::Merge');
+}
+
diff --git a/t/VirtualShelves_Page.t b/t/VirtualShelves_Page.t
new file mode 100755 (executable)
index 0000000..236d147
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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::VirtualShelves::Page');
+}
+