32 |
# Searches in general |
# Searches in general |
33 |
my $collection = Arh::Model::UserCollection->new(current_user => $system_user); |
my $collection = Arh::Model::UserCollection->new(current_user => $system_user); |
34 |
$collection->unlimit; |
$collection->unlimit; |
35 |
is($collection->count, 3, "Finds 3 records"); |
is($collection->count, 4, "Finds 4 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, 2, "Still 2 left"); |
is($collection->count, 3, "Still 3 left"); |
49 |
|
|