7 eval "use DBIx::Class::CDBICompat;";
8 plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@"
10 plan skip_all => "DateTime required" unless eval { require DateTime };
15 # Don't use Test::NoWarnings because of an unrelated DBD::SQLite warning.
17 local $SIG{__WARN__} = sub {
24 use base 'DBIx::Class::Test::SQLite';
26 Thing->columns(All => qw[thing_id this that date]);
29 my $thing = Thing->construct({ thing_id => 23, this => 42 });
30 $thing->set( this => undef );
31 is $thing->get( "this" ), undef, 'undef set';
32 $thing->discard_changes;
34 is @warnings, 0, 'no warnings';