Merge the relationship resolution rework
[dbsrgits/DBIx-Class.git] / t / cdbi / multi_column_set.t
CommitLineData
c0329273 1BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
83eef562 2use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
3
e60dc79f 4use strict;
4a233f30 5use warnings;
83eef562 6
e60dc79f 7use Test::More;
97d61088 8use lib 't/cdbi/testlib';
e60dc79f 9
e60dc79f 10{
11 package Thing;
12
97d61088 13 use base 'DBIC::Test::SQLite';
e60dc79f 14
15 Thing->columns(TEMP => qw[foo bar baz]);
16 Thing->columns(All => qw[some real stuff]);
17}
18
19my $thing = Thing->construct({ foo => 23, some => 42, baz => 99 });
20$thing->set( foo => "wibble", some => "woosh" );
21is $thing->foo, "wibble";
22is $thing->some, "woosh";
23is $thing->baz, 99;
24
25$thing->discard_changes;
d9bd5195 26
27done_testing;