From fe87dbc1a5d3cae6909d0c464837f00ea1e30c90 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 19 Dec 2017 13:02:27 -0300 Subject: [PATCH] Bug 19826: Unit test files Signed-off-by: Kyle M Hall --- t/db_dependent/Koha/Acquisition/Budget.t | 31 +++++++++++++++++++++++++++++++ t/db_dependent/Koha/Acquisition/Budgets.t | 31 +++++++++++++++++++++++++++++++ t/db_dependent/Koha/Acquisition/Fund.t | 31 +++++++++++++++++++++++++++++++ t/db_dependent/Koha/Acquisition/Funds.t | 31 +++++++++++++++++++++++++++++++ 4 files changed, 124 insertions(+) create mode 100644 t/db_dependent/Koha/Acquisition/Budget.t create mode 100644 t/db_dependent/Koha/Acquisition/Budgets.t create mode 100644 t/db_dependent/Koha/Acquisition/Fund.t create mode 100644 t/db_dependent/Koha/Acquisition/Funds.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..7fd41e8bd4 --- /dev/null +++ b/t/db_dependent/Koha/Acquisition/Budget.t @@ -0,0 +1,31 @@ +#!/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 . + +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/Budgets.t b/t/db_dependent/Koha/Acquisition/Budgets.t new file mode 100644 index 0000000000..7f6635770f --- /dev/null +++ b/t/db_dependent/Koha/Acquisition/Budgets.t @@ -0,0 +1,31 @@ +#!/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 . + +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'); + diff --git a/t/db_dependent/Koha/Acquisition/Fund.t b/t/db_dependent/Koha/Acquisition/Fund.t new file mode 100644 index 0000000000..f6ce96aabc --- /dev/null +++ b/t/db_dependent/Koha/Acquisition/Fund.t @@ -0,0 +1,31 @@ +#!/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 . + +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::Fund'); + diff --git a/t/db_dependent/Koha/Acquisition/Funds.t b/t/db_dependent/Koha/Acquisition/Funds.t new file mode 100644 index 0000000000..fb00f9190c --- /dev/null +++ b/t/db_dependent/Koha/Acquisition/Funds.t @@ -0,0 +1,31 @@ +#!/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 . + +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::Funds'); + -- 2.15.1