aboutsummaryrefslogtreecommitdiff
path: root/engine/tests
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-01-22 13:02:53 -0800
committerBrett Profitt <brett.profitt@gmail.com>2012-01-22 13:02:53 -0800
commit8d62572ff8c2b5bde2c2a933c5b0268d5984a879 (patch)
tree5b1e742056957f042e7bba05479b1979b279439e /engine/tests
parent673a7bedf097289b2885c7bd35b2d46b612d67dc (diff)
downloadelgg-8d62572ff8c2b5bde2c2a933c5b0268d5984a879.tar.gz
elgg-8d62572ff8c2b5bde2c2a933c5b0268d5984a879.tar.bz2
Fixes #4321. Limit alone is no longer valid for batch delete operations for metadata or annotations.
Diffstat (limited to 'engine/tests')
-rw-r--r--engine/tests/api/metastrings.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/tests/api/metastrings.php b/engine/tests/api/metastrings.php
index a96388217..0a8945084 100644
--- a/engine/tests/api/metastrings.php
+++ b/engine/tests/api/metastrings.php
@@ -132,7 +132,7 @@ class ElggCoreMetastringsTest extends ElggCoreUnitTest {
public function testKeepMeFromDeletingEverything() {
foreach ($this->metastringTypes as $type) {
$required = array(
- 'guid', 'guids', 'limit'
+ 'guid', 'guids'
);
switch ($type) {
@@ -160,6 +160,10 @@ class ElggCoreMetastringsTest extends ElggCoreUnitTest {
$options = array();
$this->assertFalse(elgg_is_valid_options_for_batch_operation($options, $type));
+ // limit alone isn't valid:
+ $options = array('limit' => 10);
+ $this->assertFalse(elgg_is_valid_options_for_batch_operation($options, $type));
+
foreach ($required as $key) {
$options = array();