Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / cdbi / hasa_without_loading.t
CommitLineData
e60dc79f 1use strict;
4a233f30 2use warnings;
e60dc79f 3use Test::More;
4
d9bd5195 5use lib 't/cdbi/testlib';
6use DBIC::Test::SQLite (); # this will issue the necessary SKIPs on missing reqs
e60dc79f 7
8package Foo;
9
c0b5f828 10use base qw(DBIx::Class::CDBICompat);
e60dc79f 11
12eval {
13 Foo->table("foo");
14 Foo->columns(Essential => qw(foo bar));
c0b5f828 15 #Foo->has_a( bar => "This::Does::Not::Exist::Yet" );
e60dc79f 16};
c0b5f828 17#::is $@, '';
e60dc79f 18::is(Foo->table, "foo");
19::is_deeply [sort map lc, Foo->columns], [sort map lc, qw(foo bar)];
d9bd5195 20
21::done_testing;