Bugzilla – Attachment 69919 Details for
Bug 19826
Introduce Koha::Acquisition::Budget(s) and Koha::Acquisition::Fund(s)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19826: Unit test files
Bug-19826-Unit-test-files.patch (text/plain), 5.34 KB, created by
Tomás Cohen Arazi (tcohen)
on 2017-12-19 16:03:14 UTC
(
hide
)
Description:
Bug 19826: Unit test files
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-12-19 16:03:14 UTC
Size:
5.34 KB
patch
obsolete
>From 16abd90c045f1907d5867c05da0c7835a3f5298d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 19 Dec 2017 13:02:27 -0300 >Subject: [PATCH] Bug 19826: Unit test files > >--- > t/db_dependent/Koha/Acquisition/Budget.t | 30 ++++++++++++++++++++++++ > t/db_dependent/Koha/Acquisition/Budget/Fund.t | 30 ++++++++++++++++++++++++ > t/db_dependent/Koha/Acquisition/Budget/Funds.t | 30 ++++++++++++++++++++++++ > t/db_dependent/Koha/Acquisition/Budgets.t | 32 ++++++++++++++++++++++++++ > 4 files changed, 122 insertions(+) > create mode 100644 t/db_dependent/Koha/Acquisition/Budget.t > create mode 100644 t/db_dependent/Koha/Acquisition/Budget/Fund.t > create mode 100644 t/db_dependent/Koha/Acquisition/Budget/Funds.t > create mode 100644 t/db_dependent/Koha/Acquisition/Budgets.t > >diff --git a/t/db_dependent/Koha/Acquisition/Budget.t b/t/db_dependent/Koha/Acquisition/Budget.t >new file mode 100644 >index 0000000000..f7f9da86f3 >--- /dev/null >+++ b/t/db_dependent/Koha/Acquisition/Budget.t >@@ -0,0 +1,30 @@ >+#!/usr/bin/perl >+ >+# This file is part of Koha >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use Test::More tests => 1; >+ >+use t::lib::TestBuilder; >+use t::lib::Mocks; >+ >+use Koha::Database; >+ >+my $schema = Koha::Database->schema; >+my $builder = t::lib::TestBuilder->new; >+ >+use_ok('Koha::Acquisition::Budget'); >diff --git a/t/db_dependent/Koha/Acquisition/Budget/Fund.t b/t/db_dependent/Koha/Acquisition/Budget/Fund.t >new file mode 100644 >index 0000000000..c55631b131 >--- /dev/null >+++ b/t/db_dependent/Koha/Acquisition/Budget/Fund.t >@@ -0,0 +1,30 @@ >+#!/usr/bin/perl >+ >+# This file is part of Koha >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use Test::More tests => 1; >+ >+use t::lib::TestBuilder; >+use t::lib::Mocks; >+ >+use Koha::Database; >+ >+my $schema = Koha::Database->schema; >+my $builder = t::lib::TestBuilder->new; >+ >+use_ok('Koha::Acquisition::Budget::Fund'); >diff --git a/t/db_dependent/Koha/Acquisition/Budget/Funds.t b/t/db_dependent/Koha/Acquisition/Budget/Funds.t >new file mode 100644 >index 0000000000..2060c7b190 >--- /dev/null >+++ b/t/db_dependent/Koha/Acquisition/Budget/Funds.t >@@ -0,0 +1,30 @@ >+#!/usr/bin/perl >+ >+# This file is part of Koha >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use Test::More tests => 1; >+ >+use t::lib::TestBuilder; >+use t::lib::Mocks; >+ >+use Koha::Database; >+ >+my $schema = Koha::Database->schema; >+my $builder = t::lib::TestBuilder->new; >+ >+use_ok('Koha::Acquisition::Budget::Funds'); >diff --git a/t/db_dependent/Koha/Acquisition/Budgets.t b/t/db_dependent/Koha/Acquisition/Budgets.t >new file mode 100644 >index 0000000000..dca3a296f4 >--- /dev/null >+++ b/t/db_dependent/Koha/Acquisition/Budgets.t >@@ -0,0 +1,32 @@ >+#!/usr/bin/perl >+ >+# Copyright 2017 Koha Development team >+# >+# This file is part of Koha >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use Test::More tests => 1; >+ >+use t::lib::TestBuilder; >+use t::lib::Mocks; >+ >+use Koha::Database; >+ >+my $schema = Koha::Database->schema; >+my $builder = t::lib::TestBuilder->new; >+ >+use_ok('Koha::Acquisition::Budgets'); >-- >2.14.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19826
:
69848
|
69849
|
69891
|
69918
|
69919
|
70063
|
70064
|
70119
|
70120
|
70156
|
70157