36 |
# Searches in general |
# Searches in general |
37 |
my $collection = Arh::Model::MaterialCollection->new(current_user => $system_user); |
my $collection = Arh::Model::MaterialCollection->new(current_user => $system_user); |
38 |
$collection->unlimit; |
$collection->unlimit; |
39 |
is($collection->count, 3, "Finds 3 records"); |
is($collection->count, 4, "Finds 4 records"); |
40 |
|
|
41 |
# Searches in specific |
# Searches in specific |
42 |
$collection->limit(column => 'id', value => $o->id); |
$collection->limit(column => 'id', value => $o->id); |
49 |
|
|
50 |
# And the other one is still there |
# And the other one is still there |
51 |
$collection->unlimit; |
$collection->unlimit; |
52 |
is($collection->count, 2, "Still 2 left"); |
is($collection->count, 3, "Still 3 left"); |
53 |
|
|