aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-05-31 13:34:04 +0200
committerTristan Darricau <github@nicofuma.fr>2014-05-31 13:34:04 +0200
commit9c497a7b462a24b980912af669a44bfb82f5bdc2 (patch)
treee3f6d75521b07196c22df2af05719b352d6ddd02 /tests
parent36071ded9d37f38d446d17013b90dff9da94245b (diff)
downloadforums-9c497a7b462a24b980912af669a44bfb82f5bdc2.tar
forums-9c497a7b462a24b980912af669a44bfb82f5bdc2.tar.gz
forums-9c497a7b462a24b980912af669a44bfb82f5bdc2.tar.bz2
forums-9c497a7b462a24b980912af669a44bfb82f5bdc2.tar.xz
forums-9c497a7b462a24b980912af669a44bfb82f5bdc2.zip
[ticket/12639] Add a test case with an empty keywords list
PHPBB3-12639
Diffstat (limited to 'tests')
-rw-r--r--tests/log/delete_test.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/log/delete_test.php b/tests/log/delete_test.php
index f10e3e582b..14895de059 100644
--- a/tests/log/delete_test.php
+++ b/tests/log/delete_test.php
@@ -56,5 +56,10 @@ class phpbb_log_delete_test extends phpbb_database_test_case
$this->assertCount(3, $log->get_logs('critical', false, 0, 0, 0, 0, 0, 0, 'l.log_time DESC'));
$log->delete('critical', array('user_id' => array('>', 1)));
$this->assertCount(1, $log->get_logs('critical', false, 0, 0, 0, 0, 0, 0, 'l.log_time DESC'));
+
+ // Delete with an empty keyword list
+ $this->assertCount(1, $log->get_logs('critical', false, 0, 0, 0, 0, 0, 0, 'l.log_time DESC'));
+ $log->delete('critical', array('keywords' => ''));
+ $this->assertEmpty($log->get_logs('critical', false, 0, 0, 0, 0, 0, 0, 'l.log_time DESC'));
}
}