From e0892a5139d68249db0c8acec03eae008f850509 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 31 Oct 2010 18:25:46 -0400 Subject: [PATCH] Bug 5327: More basic unit tests for C4 modules Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- t/AuthoritiesMarc_MARC21.t | 14 ++++++++++++++ t/AuthoritiesMarc_UNIMARC.t | 14 ++++++++++++++ t/Barcodes_annual.t | 14 ++++++++++++++ t/Barcodes_hbyymmincr.t | 14 ++++++++++++++ t/Barcodes_incremental.t | 14 ++++++++++++++ t/Cache_FastMemcached.t | 14 ++++++++++++++ t/Cache_Memcached.t | 14 ++++++++++++++ t/Cache_Memoize_Memcached.t | 14 ++++++++++++++ t/ClassSortRoutine_Dewey.t | 14 ++++++++++++++ t/ClassSortRoutine_Generic.t | 14 ++++++++++++++ t/ClassSortRoutine_LCC.t | 14 ++++++++++++++ t/External_BakerTaylor.t | 14 ++++++++++++++ t/External_Syndetics.t | 14 ++++++++++++++ t/Form_MessagingPreferences.t | 14 ++++++++++++++ t/Heading_MARC21.t | 14 ++++++++++++++ t/ILSDI_Services.t | 14 ++++++++++++++ t/ILSDI_Utility.t | 14 ++++++++++++++ t/Installer_PerlDependencies.t | 14 ++++++++++++++ t/Installer_PerlModules.t | 14 ++++++++++++++ t/Members_AttributeTypes.t | 14 ++++++++++++++ t/Members_Messaging.t | 14 ++++++++++++++ t/Output_JSONStream.t | 14 ++++++++++++++ t/Patroncards_Batch.t | 14 ++++++++++++++ t/Patroncards_Layout.t | 14 ++++++++++++++ t/Patroncards_Lib.t | 14 ++++++++++++++ t/Patroncards_Patroncard.t | 14 ++++++++++++++ t/Patroncards_Profile.t | 14 ++++++++++++++ t/Patroncards_Template.t | 14 ++++++++++++++ t/Reports_Guided.t | 14 ++++++++++++++ t/SIP_ILS.t | 14 ++++++++++++++ t/SIP_SIPServer.t | 14 ++++++++++++++ t/SIP_Sip.t | 14 ++++++++++++++ t/Search_PazPar2.t | 14 ++++++++++++++ t/VirtualShelves_Merge.t | 14 ++++++++++++++ t/VirtualShelves_Page.t | 14 ++++++++++++++ 35 files changed, 490 insertions(+) create mode 100755 t/AuthoritiesMarc_MARC21.t create mode 100755 t/AuthoritiesMarc_UNIMARC.t create mode 100755 t/Barcodes_annual.t create mode 100755 t/Barcodes_hbyymmincr.t create mode 100755 t/Barcodes_incremental.t create mode 100755 t/Cache_FastMemcached.t create mode 100755 t/Cache_Memcached.t create mode 100755 t/Cache_Memoize_Memcached.t create mode 100755 t/ClassSortRoutine_Dewey.t create mode 100755 t/ClassSortRoutine_Generic.t create mode 100755 t/ClassSortRoutine_LCC.t create mode 100755 t/External_BakerTaylor.t create mode 100755 t/External_Syndetics.t create mode 100755 t/Form_MessagingPreferences.t create mode 100755 t/Heading_MARC21.t create mode 100755 t/ILSDI_Services.t create mode 100755 t/ILSDI_Utility.t create mode 100755 t/Installer_PerlDependencies.t create mode 100755 t/Installer_PerlModules.t create mode 100755 t/Members_AttributeTypes.t create mode 100755 t/Members_Messaging.t create mode 100755 t/Output_JSONStream.t create mode 100755 t/Patroncards_Batch.t create mode 100755 t/Patroncards_Layout.t create mode 100755 t/Patroncards_Lib.t create mode 100755 t/Patroncards_Patroncard.t create mode 100755 t/Patroncards_Profile.t create mode 100755 t/Patroncards_Template.t create mode 100755 t/Reports_Guided.t create mode 100755 t/SIP_ILS.t create mode 100755 t/SIP_SIPServer.t create mode 100755 t/SIP_Sip.t create mode 100755 t/Search_PazPar2.t create mode 100755 t/VirtualShelves_Merge.t create mode 100755 t/VirtualShelves_Page.t diff --git a/t/AuthoritiesMarc_MARC21.t b/t/AuthoritiesMarc_MARC21.t new file mode 100755 index 0000000000..d83534a515 --- /dev/null +++ b/t/AuthoritiesMarc_MARC21.t @@ -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 index 0000000000..0a55cd63f1 --- /dev/null +++ b/t/AuthoritiesMarc_UNIMARC.t @@ -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 index 0000000000..b89d207e42 --- /dev/null +++ b/t/Barcodes_annual.t @@ -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 index 0000000000..a2377d3add --- /dev/null +++ b/t/Barcodes_hbyymmincr.t @@ -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 index 0000000000..1bde5d3638 --- /dev/null +++ b/t/Barcodes_incremental.t @@ -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 index 0000000000..589e9b198f --- /dev/null +++ b/t/Cache_FastMemcached.t @@ -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 index 0000000000..80dfc7f095 --- /dev/null +++ b/t/Cache_Memcached.t @@ -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 index 0000000000..13e26e5cc4 --- /dev/null +++ b/t/Cache_Memoize_Memcached.t @@ -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 index 0000000000..a2d3dc1681 --- /dev/null +++ b/t/ClassSortRoutine_Dewey.t @@ -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 index 0000000000..d627259f53 --- /dev/null +++ b/t/ClassSortRoutine_Generic.t @@ -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 index 0000000000..9a5e007425 --- /dev/null +++ b/t/ClassSortRoutine_LCC.t @@ -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 index 0000000000..fdccaee302 --- /dev/null +++ b/t/External_BakerTaylor.t @@ -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 index 0000000000..e335c7458e --- /dev/null +++ b/t/External_Syndetics.t @@ -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 index 0000000000..483e1331e3 --- /dev/null +++ b/t/Form_MessagingPreferences.t @@ -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 index 0000000000..a0ca21bfc8 --- /dev/null +++ b/t/Heading_MARC21.t @@ -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 index 0000000000..99476d3382 --- /dev/null +++ b/t/ILSDI_Services.t @@ -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 index 0000000000..c06209b691 --- /dev/null +++ b/t/ILSDI_Utility.t @@ -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 index 0000000000..45dc1f1659 --- /dev/null +++ b/t/Installer_PerlDependencies.t @@ -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 index 0000000000..561d84cc7b --- /dev/null +++ b/t/Installer_PerlModules.t @@ -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 index 0000000000..9dfc6c3d5f --- /dev/null +++ b/t/Members_AttributeTypes.t @@ -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 index 0000000000..93950084c1 --- /dev/null +++ b/t/Members_Messaging.t @@ -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 index 0000000000..2ee22fe9c3 --- /dev/null +++ b/t/Output_JSONStream.t @@ -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 index 0000000000..a0743ff8d9 --- /dev/null +++ b/t/Patroncards_Batch.t @@ -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 index 0000000000..fe687612b8 --- /dev/null +++ b/t/Patroncards_Layout.t @@ -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 index 0000000000..88154a6425 --- /dev/null +++ b/t/Patroncards_Lib.t @@ -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 index 0000000000..8868350fb1 --- /dev/null +++ b/t/Patroncards_Patroncard.t @@ -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 index 0000000000..78cb6cfa7c --- /dev/null +++ b/t/Patroncards_Profile.t @@ -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 index 0000000000..a781e0c3cc --- /dev/null +++ b/t/Patroncards_Template.t @@ -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 index 0000000000..0b0cda67c7 --- /dev/null +++ b/t/Reports_Guided.t @@ -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 index 0000000000..38e9ebd776 --- /dev/null +++ b/t/SIP_ILS.t @@ -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 index 0000000000..48a0a9f137 --- /dev/null +++ b/t/SIP_SIPServer.t @@ -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 index 0000000000..6db6acfe99 --- /dev/null +++ b/t/SIP_Sip.t @@ -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 index 0000000000..8d51720aac --- /dev/null +++ b/t/Search_PazPar2.t @@ -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 index 0000000000..954fdc4362 --- /dev/null +++ b/t/VirtualShelves_Merge.t @@ -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 index 0000000000..236d1476fa --- /dev/null +++ b/t/VirtualShelves_Page.t @@ -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'); +} + -- 2.20.1