53 |
# Searches in general |
# Searches in general |
54 |
my $collection = Arh::Model::UnitCollection->new(current_user => $system_user); |
my $collection = Arh::Model::UnitCollection->new(current_user => $system_user); |
55 |
$collection->unlimit; |
$collection->unlimit; |
56 |
is($collection->count, 3, "Finds 3 records"); |
is($collection->count, 4, "Finds 4 records"); |
57 |
|
|
58 |
# Searches in specific |
# Searches in specific |
59 |
$collection->limit(column => 'id', value => $o->id); |
$collection->limit(column => 'id', value => $o->id); |
66 |
|
|
67 |
# And the other one is still there |
# And the other one is still there |
68 |
$collection->unlimit; |
$collection->unlimit; |
69 |
is($collection->count, 2, "Still 2 left"); |
is($collection->count, 3, "Still 3 left"); |
70 |
|
|