Using DBIx::Class as a parent causes Class::Accessor::Grouped to be
[dbsrgits/DBIx-Class.git] / t / cdbi-t / set_to_undef.t
CommitLineData
4c9f72c1 1#!/usr/bin/perl -w
2
3use strict;
4use Test::More;
4c9f72c1 5
6BEGIN {
7 eval "use DBIx::Class::CDBICompat;";
8 plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@"
9 if $@;
10 plan skip_all => "DateTime required" unless eval { require DateTime };
11 plan tests => 1;
12}
13
14e38771 14use Test::NoWarnings;
15
4c9f72c1 16{
17 package Thing;
18
19 use base 'DBIx::Class::Test::SQLite';
20
21 Thing->columns(All => qw[thing_id this that date]);
22}
23
24my $thing = Thing->construct({ thing_id => 23, this => 42 });
25$thing->set( this => undef );
26$thing->discard_changes;