Remove support for source_bind_attributes() as promised in 0e773352a
[dbsrgits/DBIx-Class.git] / t / ordered / unordered_movement.t
CommitLineData
375c84bb 1use strict;
2use warnings;
3
4use Test::More;
5use Test::Exception;
6use lib qw(t/lib);
7use DBICTest;
8
9my $schema = DBICTest->init_schema();
10
11my $cd = $schema->resultset('CD')->next;
12
13lives_ok {
14 $cd->tracks->delete;
15
16 my @tracks = map
17 { $cd->create_related('tracks', { title => "t_$_", position => $_ }) }
18 (4,2,5,1,3)
19 ;
20
21 for (@tracks) {
22 $_->discard_changes;
23 $_->delete;
24 }
25} 'Creation/deletion of out-of order tracks successful';
26
27done_testing;