diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-01-22 13:02:53 -0800 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-01-22 13:02:53 -0800 |
commit | 8d62572ff8c2b5bde2c2a933c5b0268d5984a879 (patch) | |
tree | 5b1e742056957f042e7bba05479b1979b279439e /engine/tests/api/metastrings.php | |
parent | 673a7bedf097289b2885c7bd35b2d46b612d67dc (diff) | |
download | elgg-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/api/metastrings.php')
-rw-r--r-- | engine/tests/api/metastrings.php | 6 |
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(); |