Introduce GOVERNANCE document and empty RESOLUTIONS file.
[dbsrgits/DBIx-Class.git] / t / storage / deprecated_exception_source_bind_attrs.t
CommitLineData
c0329273 1BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2
97202028 3use strict;
4use warnings;
5
6use Test::More;
7use Test::Warn;
8use Test::Exception;
c0329273 9
97202028 10use DBICTest;
11
12{
13 package DBICTest::Legacy::Storage;
14 use base 'DBIx::Class::Storage::DBI::SQLite';
15
97202028 16 sub source_bind_attributes { return {} }
17}
18
19
20my $schema = DBICTest::Schema->clone;
21$schema->storage_type('DBICTest::Legacy::Storage');
22$schema->connection('dbi:SQLite::memory:');
23
24throws_ok
25 { $schema->storage->ensure_connected }
26 qr/\Qstorage subclass DBICTest::Legacy::Storage provides (or inherits) the method source_bind_attributes()/,
27 'deprecated use of source_bind_attributes throws',
28;
29
30done_testing;