From 16abd90c045f1907d5867c05da0c7835a3f5298d 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 --- 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 . + +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 . + +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 . + +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 . + +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