[1] Renames the dbrev version to XXX; adding a my for $sth, although
not strictly necessary it feels better.
[2] Circulation.t stumbles over:
Undefined subroutine &C4::Circulation::GetItem called at ... line 1283.
Somehow this is related to use_ok instead of a regular use.
Worked around this by require_ok and adding a regular use.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
SetVersion($DBversion);
}
-$DBversion = "3.23.00.XXX";
+$DBversion = "XXX";
if ( CheckVersion($DBversion) ) {
- $sth = $dbh->prepare(q{
+ my $sth = $dbh->prepare(q{
SELECT s.itemnumber, i.itype, b.itemtype
FROM
( SELECT DISTINCT itemnumber
use Modern::Perl;
+use Test::More tests => 88;
+
+BEGIN {
+ require_ok('C4::Circulation');
+}
+
use DateTime;
+
use t::lib::Mocks;
+use t::lib::TestBuilder;
+
+use C4::Circulation;
use C4::Biblio;
use C4::Items;
use C4::Members;
use Koha::DateUtils;
use Koha::Database;
-use t::lib::TestBuilder;
-
-use Test::More tests => 88;
-
-BEGIN {
- use_ok('C4::Circulation');
-}
my $schema = Koha::Database->schema;
$schema->storage->txn_begin;