9379e1ca9cd294b8a812df4c34d3f864fe976f59
[dbsrgits/DBIx-Class.git] / t / 30dbicplain.t
1 use strict;
2 use warnings;
3 use Test::More;
4
5 use lib qw(t/lib);
6
7 plan tests => 3;
8
9 my @warnings;
10
11 {
12   local $SIG{__WARN__} = sub { push(@warnings, $_[0]); };
13   require DBICTest::Plain;
14 }
15
16 like($warnings[0], qr/compose_connection deprecated as of 0\.08000/,
17       'deprecation warning emitted ok');
18 cmp_ok(@warnings, '==', 1, 'no unexpected warnings');
19 cmp_ok(DBICTest::Plain->resultset('Test')->count, '>', 0, 'count is valid');