1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
10 my $schema = DBICTest->init_schema();
13 my $clone = $schema->clone;
14 cmp_ok ($clone->storage, 'eq', $schema->storage, 'Storage copied into new schema (not a new instance)');
18 is $schema->custom_attr, undef;
19 my $clone = $schema->clone(custom_attr => 'moo');
20 is $clone->custom_attr, 'moo', 'cloning can change existing attrs';
24 my $clone = $schema->clone({ custom_attr => 'moo' });
25 is $clone->custom_attr, 'moo', 'cloning can change existing attrs';