32 |
# Searches in general |
# Searches in general |
33 |
my $collection = Transports::Model::DestinationCollection->new(current_user => $system_user); |
my $collection = Transports::Model::DestinationCollection->new(current_user => $system_user); |
34 |
$collection->unlimit; |
$collection->unlimit; |
35 |
is($collection->count, 2, "Finds two records"); |
is($collection->count, 4, "Finds two records"); |
36 |
|
|
37 |
# Searches in specific |
# Searches in specific |
38 |
$collection->limit(column => 'id', value => $o->id); |
$collection->limit(column => 'id', value => $o->id); |
45 |
|
|
46 |
# And the other one is still there |
# And the other one is still there |
47 |
$collection->unlimit; |
$collection->unlimit; |
48 |
is($collection->count, 1, "Still one left"); |
is($collection->count, 3, "Still one left"); |
49 |
|
|