Bug 32351: Fix t/db_dependent/Koha/Charges/Sales.t
[koha-ffzg.git] / t / db_dependent / Illrequestattributes.t
old mode 100644 (file)
new mode 100755 (executable)
index ceb0474..d81215f
@@ -1,20 +1,19 @@
 #!/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 2 of the License, or (at your option) any later
-# version.
+# 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, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+# 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;
 
@@ -35,6 +34,8 @@ subtest 'Basic object tests' => sub {
 
     $schema->storage->txn_begin;
 
+    Koha::Illrequestattributes->search->delete;
+
     my $builder = t::lib::TestBuilder->new;
 
     my $illrqattr = $builder->build({ source => 'Illrequestattribute' });