40 |
# Searches in general |
# Searches in general |
41 |
my $collection = Transports::Model::UserCollection->new(current_user => $system_user); |
my $collection = Transports::Model::UserCollection->new(current_user => $system_user); |
42 |
$collection->unlimit; |
$collection->unlimit; |
43 |
is($collection->count, 2, "Finds two records"); |
is($collection->count, 3, "Finds two records"); |
44 |
|
|
45 |
# Searches in specific |
# Searches in specific |
46 |
$collection->limit(column => 'id', value => $o->id); |
$collection->limit(column => 'id', value => $o->id); |
53 |
|
|
54 |
# And the other one is still there |
# And the other one is still there |
55 |
$collection->unlimit; |
$collection->unlimit; |
56 |
is($collection->count, 1, "Still one left"); |
is($collection->count, 2, "Still one left"); |
57 |
|
|