use Test::More;
use DBIx::Class::Optional::Dependencies ();
use lib qw(t/lib);
-use DBICTest::RunMode;
$ENV{NLS_SORT} = "BINARY";
$ENV{NLS_COMP} = "BINARY";
}
}
-use DBICTest::RunMode;
use DBICTest::Schema;
use DBICTest::Util::LeakTracer qw/populate_weakregistry assert_empty_weakregistry/;
use DBICTest::Util 'local_umask';
--- /dev/null
+package #hide from pause
+ DBICTest::Base;
+
+use strict;
+use warnings;
+
+# must load before any DBIx::Class* namespaces
+use DBICTest::RunMode;
+
+sub _skip_namespace_frames { '^DBICTest' }
+
+1;
use strict;
use warnings;
-# must load before any DBIx::Class* namespaces
-use DBICTest::RunMode;
-
-use base 'DBIx::Class::Core';
+use base qw(DBICTest::Base DBIx::Class::Core);
#use base qw/DBIx::Class::Relationship::Cascade::Rekey DBIx::Class::Core/;
use strict;
use warnings;
-# must load before any DBIx::Class* namespaces
-use DBICTest::RunMode;
-
-use base 'DBIx::Class::ResultSet';
-__PACKAGE__->_skip_namespace_frames('^DBICTest');
+use base qw(DBICTest::Base DBIx::Class::ResultSet);
sub all_hri {
return [ shift->search ({}, { result_class => 'DBIx::Class::ResultClass::HashRefInflator' })->all ];
use strict;
use warnings;
-# must load before any DBIx::Class* namespaces
-use DBICTest::RunMode;
+use base qw(DBICTest::Base DBIx::Class::Schema);
-use base 'DBIx::Class::Schema';
1;
use Test::More;
use lib 't/lib';
-use DBICTest::RunMode;
-
-if ( DBICTest::RunMode->is_plain ) {
- plan( skip_all => "Skipping test on plain module install" );
+BEGIN {
+ require DBICTest::RunMode;
+ plan( skip_all => "Skipping test on plain module install" )
+ if DBICTest::RunMode->is_plain;
}
use Test::Exception;