From 3fb5b5989464bd36f7074426e60c8756a74038b9 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 29 Oct 2010 23:53:45 -0400 Subject: [PATCH] Bug 5327: Add basic unit tests to some C4 modules Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack Signed-off-by: Chris Nighswonger --- t/Auth_with_cas.t | 14 ++++++++++++++ t/AuthoritiesMarc.t | 14 ++++++++++++++ t/Biblio.t | 14 ++++++++++++++ t/Breeding.t | 14 ++++++++++++++ t/Category.t | 14 ++++++++++++++ t/ClassSortRoutine.t | 14 ++++++++++++++ t/ClassSource.t | 14 ++++++++++++++ t/Contract.t | 14 ++++++++++++++ t/Creators.t | 14 ++++++++++++++ t/Csv.t | 14 ++++++++++++++ t/Heading.t | 14 ++++++++++++++ t/ItemCirculationAlertPreference.t | 14 ++++++++++++++ t/Items.t | 14 ++++++++++++++ t/Letters.t | 14 ++++++++++++++ t/Log.t | 14 ++++++++++++++ t/Matcher.t | 14 ++++++++++++++ t/Members.t | 14 ++++++++++++++ t/Message.t | 14 ++++++++++++++ t/NewsChannels.t | 14 ++++++++++++++ t/Overdues.t | 14 ++++++++++++++ t/Patroncards.t | 14 ++++++++++++++ t/Print.t | 14 ++++++++++++++ t/Reports.t | 14 ++++++++++++++ t/Ris.t | 14 ++++++++++++++ t/RotatingCollections.t | 14 ++++++++++++++ t/SMS.t | 14 ++++++++++++++ t/Tags.t | 14 ++++++++++++++ t/UploadedFile.t | 14 ++++++++++++++ 28 files changed, 392 insertions(+) create mode 100755 t/Auth_with_cas.t create mode 100755 t/AuthoritiesMarc.t create mode 100755 t/Biblio.t create mode 100755 t/Breeding.t create mode 100755 t/Category.t create mode 100755 t/ClassSortRoutine.t create mode 100755 t/ClassSource.t create mode 100755 t/Contract.t create mode 100755 t/Creators.t create mode 100755 t/Csv.t create mode 100755 t/Heading.t create mode 100755 t/ItemCirculationAlertPreference.t create mode 100755 t/Items.t create mode 100755 t/Letters.t create mode 100755 t/Log.t create mode 100755 t/Matcher.t create mode 100755 t/Members.t create mode 100755 t/Message.t create mode 100755 t/NewsChannels.t create mode 100755 t/Overdues.t create mode 100755 t/Patroncards.t create mode 100755 t/Print.t create mode 100755 t/Reports.t create mode 100755 t/Ris.t create mode 100755 t/RotatingCollections.t create mode 100755 t/SMS.t create mode 100755 t/Tags.t create mode 100755 t/UploadedFile.t diff --git a/t/Auth_with_cas.t b/t/Auth_with_cas.t new file mode 100755 index 0000000000..77dd21f024 --- /dev/null +++ b/t/Auth_with_cas.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::Auth_with_cas'); +} + diff --git a/t/AuthoritiesMarc.t b/t/AuthoritiesMarc.t new file mode 100755 index 0000000000..d59b43b2fe --- /dev/null +++ b/t/AuthoritiesMarc.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'); +} + diff --git a/t/Biblio.t b/t/Biblio.t new file mode 100755 index 0000000000..c18605869a --- /dev/null +++ b/t/Biblio.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::Biblio'); +} + diff --git a/t/Breeding.t b/t/Breeding.t new file mode 100755 index 0000000000..e672bf1395 --- /dev/null +++ b/t/Breeding.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::Breeding'); +} + diff --git a/t/Category.t b/t/Category.t new file mode 100755 index 0000000000..6c251ea472 --- /dev/null +++ b/t/Category.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::Category'); +} + diff --git a/t/ClassSortRoutine.t b/t/ClassSortRoutine.t new file mode 100755 index 0000000000..be379a29e6 --- /dev/null +++ b/t/ClassSortRoutine.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'); +} + diff --git a/t/ClassSource.t b/t/ClassSource.t new file mode 100755 index 0000000000..ffb3104fcc --- /dev/null +++ b/t/ClassSource.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::ClassSource'); +} + diff --git a/t/Contract.t b/t/Contract.t new file mode 100755 index 0000000000..87df569a43 --- /dev/null +++ b/t/Contract.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::Contract'); +} + diff --git a/t/Creators.t b/t/Creators.t new file mode 100755 index 0000000000..5264d3204d --- /dev/null +++ b/t/Creators.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::Creators'); +} + diff --git a/t/Csv.t b/t/Csv.t new file mode 100755 index 0000000000..068f094cf3 --- /dev/null +++ b/t/Csv.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::Csv'); +} + diff --git a/t/Heading.t b/t/Heading.t new file mode 100755 index 0000000000..d7809443c4 --- /dev/null +++ b/t/Heading.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::Heading'); +} + diff --git a/t/ItemCirculationAlertPreference.t b/t/ItemCirculationAlertPreference.t new file mode 100755 index 0000000000..d937c26fcb --- /dev/null +++ b/t/ItemCirculationAlertPreference.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::ItemCirculationAlertPreference'); +} + diff --git a/t/Items.t b/t/Items.t new file mode 100755 index 0000000000..c19cdc7338 --- /dev/null +++ b/t/Items.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::Items'); +} + diff --git a/t/Letters.t b/t/Letters.t new file mode 100755 index 0000000000..603e37efa7 --- /dev/null +++ b/t/Letters.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::Letters'); +} + diff --git a/t/Log.t b/t/Log.t new file mode 100755 index 0000000000..eca6b9c60e --- /dev/null +++ b/t/Log.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::Log'); +} + diff --git a/t/Matcher.t b/t/Matcher.t new file mode 100755 index 0000000000..f3748776b5 --- /dev/null +++ b/t/Matcher.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::Matcher'); +} + diff --git a/t/Members.t b/t/Members.t new file mode 100755 index 0000000000..bbcfc95c32 --- /dev/null +++ b/t/Members.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'); +} + diff --git a/t/Message.t b/t/Message.t new file mode 100755 index 0000000000..7641d57540 --- /dev/null +++ b/t/Message.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::Message'); +} + diff --git a/t/NewsChannels.t b/t/NewsChannels.t new file mode 100755 index 0000000000..bbcaab14cc --- /dev/null +++ b/t/NewsChannels.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::NewsChannels'); +} + diff --git a/t/Overdues.t b/t/Overdues.t new file mode 100755 index 0000000000..62725cb746 --- /dev/null +++ b/t/Overdues.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::Overdues'); +} + diff --git a/t/Patroncards.t b/t/Patroncards.t new file mode 100755 index 0000000000..60a7237fd8 --- /dev/null +++ b/t/Patroncards.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'); +} + diff --git a/t/Print.t b/t/Print.t new file mode 100755 index 0000000000..1a05304e4d --- /dev/null +++ b/t/Print.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::Print'); +} + diff --git a/t/Reports.t b/t/Reports.t new file mode 100755 index 0000000000..667cb8c880 --- /dev/null +++ b/t/Reports.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'); +} + diff --git a/t/Ris.t b/t/Ris.t new file mode 100755 index 0000000000..30157e4544 --- /dev/null +++ b/t/Ris.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::Ris'); +} + diff --git a/t/RotatingCollections.t b/t/RotatingCollections.t new file mode 100755 index 0000000000..10a4e20297 --- /dev/null +++ b/t/RotatingCollections.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::RotatingCollections'); +} + diff --git a/t/SMS.t b/t/SMS.t new file mode 100755 index 0000000000..d88633ff75 --- /dev/null +++ b/t/SMS.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::SMS'); +} + diff --git a/t/Tags.t b/t/Tags.t new file mode 100755 index 0000000000..83b3c9bd32 --- /dev/null +++ b/t/Tags.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::Tags'); +} + diff --git a/t/UploadedFile.t b/t/UploadedFile.t new file mode 100755 index 0000000000..dd01e1b5f0 --- /dev/null +++ b/t/UploadedFile.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::UploadedFile'); +} + -- 2.20.1