X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F85utf8.t;h=fbba764b64bd09d8cc2df20755a9105c7ef757d7;hb=90489c23e598723752c9e0d4b4da214ad05e3feb;hp=2a89fa687cdc6adfb43cd3b6c532f7fc931d7b0e;hpb=55087b9990ac4c004f1e6b9742f73d89274cf7f2;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/85utf8.t b/t/85utf8.t index 2a89fa6..fbba764 100644 --- a/t/85utf8.t +++ b/t/85utf8.t @@ -2,12 +2,28 @@ use strict; use warnings; use Test::More; +use Test::Warn; use lib qw(t/lib); use DBICTest; use utf8; -my $schema = DBICTest->init_schema(); +warning_like ( + sub { + package A::Comp; + use base 'DBIx::Class'; + sub store_column { shift->next::method (@_) }; + 1; + + package A::Test; + use base 'DBIx::Class::Core'; + __PACKAGE__->load_components(qw(UTF8Columns +A::Comp)); + 1; + }, + qr/Incorrect loading order of DBIx::Class::UTF8Columns.+affect other components overriding store_column \(A::Comp\)/, + 'incorrect order warning issued', +); +my $schema = DBICTest->init_schema(); DBICTest::Schema::CD->load_components('UTF8Columns'); DBICTest::Schema::CD->utf8_columns('title'); Class::C3->reinitialize();