From 38fc03e9e450215ccf6511ba9440a39d630cb629 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 30 Oct 2010 05:44:06 +0200 Subject: [PATCH] Bug 5327: Add basic unit tests to some C4 modules Content-Type: text/plain; charset="utf-8" --- 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(+), 0 deletions(-) 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 0000000..77dd21f --- /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 0000000..d59b43b --- /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 0000000..c186058 --- /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 0000000..e672bf1 --- /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 0000000..6c251ea --- /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 0000000..be379a2 --- /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 0000000..ffb3104 --- /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 0000000..87df569 --- /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 0000000..5264d32 --- /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 0000000..068f094 --- /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 0000000..d780944 --- /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 0000000..d937c26 --- /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 0000000..c19cdc7 --- /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 0000000..603e37e --- /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 0000000..eca6b9c --- /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 0000000..f374877 --- /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 0000000..bbcfc95 --- /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 0000000..7641d57 --- /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 0000000..bbcaab1 --- /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 0000000..62725cb --- /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 0000000..60a7237 --- /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 0000000..1a05304 --- /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 0000000..667cb8c --- /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 0000000..30157e4 --- /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 0000000..10a4e20 --- /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 0000000..d88633f --- /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 0000000..83b3c9b --- /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 0000000..dd01e1b --- /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'); +} + -- 1.7.1