Bug 5327: Add basic unit tests to some C4 modules
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sat, 30 Oct 2010 03:53:45 +0000 (23:53 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Sat, 30 Oct 2010 07:12:53 +0000 (20:12 +1300)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
28 files changed:
t/Auth_with_cas.t [new file with mode: 0755]
t/AuthoritiesMarc.t [new file with mode: 0755]
t/Biblio.t [new file with mode: 0755]
t/Breeding.t [new file with mode: 0755]
t/Category.t [new file with mode: 0755]
t/ClassSortRoutine.t [new file with mode: 0755]
t/ClassSource.t [new file with mode: 0755]
t/Contract.t [new file with mode: 0755]
t/Creators.t [new file with mode: 0755]
t/Csv.t [new file with mode: 0755]
t/Heading.t [new file with mode: 0755]
t/ItemCirculationAlertPreference.t [new file with mode: 0755]
t/Items.t [new file with mode: 0755]
t/Letters.t [new file with mode: 0755]
t/Log.t [new file with mode: 0755]
t/Matcher.t [new file with mode: 0755]
t/Members.t [new file with mode: 0755]
t/Message.t [new file with mode: 0755]
t/NewsChannels.t [new file with mode: 0755]
t/Overdues.t [new file with mode: 0755]
t/Patroncards.t [new file with mode: 0755]
t/Print.t [new file with mode: 0755]
t/Reports.t [new file with mode: 0755]
t/Ris.t [new file with mode: 0755]
t/RotatingCollections.t [new file with mode: 0755]
t/SMS.t [new file with mode: 0755]
t/Tags.t [new file with mode: 0755]
t/UploadedFile.t [new file with mode: 0755]

diff --git a/t/Auth_with_cas.t b/t/Auth_with_cas.t
new file mode 100755 (executable)
index 0000000..77dd21f
--- /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::Auth_with_cas');
+}
+
diff --git a/t/AuthoritiesMarc.t b/t/AuthoritiesMarc.t
new file mode 100755 (executable)
index 0000000..d59b43b
--- /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');
+}
+
diff --git a/t/Biblio.t b/t/Biblio.t
new file mode 100755 (executable)
index 0000000..c186058
--- /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::Biblio');
+}
+
diff --git a/t/Breeding.t b/t/Breeding.t
new file mode 100755 (executable)
index 0000000..e672bf1
--- /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::Breeding');
+}
+
diff --git a/t/Category.t b/t/Category.t
new file mode 100755 (executable)
index 0000000..6c251ea
--- /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::Category');
+}
+
diff --git a/t/ClassSortRoutine.t b/t/ClassSortRoutine.t
new file mode 100755 (executable)
index 0000000..be379a2
--- /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');
+}
+
diff --git a/t/ClassSource.t b/t/ClassSource.t
new file mode 100755 (executable)
index 0000000..ffb3104
--- /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::ClassSource');
+}
+
diff --git a/t/Contract.t b/t/Contract.t
new file mode 100755 (executable)
index 0000000..87df569
--- /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::Contract');
+}
+
diff --git a/t/Creators.t b/t/Creators.t
new file mode 100755 (executable)
index 0000000..5264d32
--- /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::Creators');
+}
+
diff --git a/t/Csv.t b/t/Csv.t
new file mode 100755 (executable)
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 (executable)
index 0000000..d780944
--- /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::Heading');
+}
+
diff --git a/t/ItemCirculationAlertPreference.t b/t/ItemCirculationAlertPreference.t
new file mode 100755 (executable)
index 0000000..d937c26
--- /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::ItemCirculationAlertPreference');
+}
+
diff --git a/t/Items.t b/t/Items.t
new file mode 100755 (executable)
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 (executable)
index 0000000..603e37e
--- /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::Letters');
+}
+
diff --git a/t/Log.t b/t/Log.t
new file mode 100755 (executable)
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 (executable)
index 0000000..f374877
--- /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::Matcher');
+}
+
diff --git a/t/Members.t b/t/Members.t
new file mode 100755 (executable)
index 0000000..bbcfc95
--- /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');
+}
+
diff --git a/t/Message.t b/t/Message.t
new file mode 100755 (executable)
index 0000000..7641d57
--- /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::Message');
+}
+
diff --git a/t/NewsChannels.t b/t/NewsChannels.t
new file mode 100755 (executable)
index 0000000..bbcaab1
--- /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::NewsChannels');
+}
+
diff --git a/t/Overdues.t b/t/Overdues.t
new file mode 100755 (executable)
index 0000000..62725cb
--- /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::Overdues');
+}
+
diff --git a/t/Patroncards.t b/t/Patroncards.t
new file mode 100755 (executable)
index 0000000..60a7237
--- /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');
+}
+
diff --git a/t/Print.t b/t/Print.t
new file mode 100755 (executable)
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 (executable)
index 0000000..667cb8c
--- /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');
+}
+
diff --git a/t/Ris.t b/t/Ris.t
new file mode 100755 (executable)
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 (executable)
index 0000000..10a4e20
--- /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::RotatingCollections');
+}
+
diff --git a/t/SMS.t b/t/SMS.t
new file mode 100755 (executable)
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 (executable)
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 (executable)
index 0000000..dd01e1b
--- /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::UploadedFile');
+}
+