summaryrefslogtreecommitdiff
path: root/_test/tests/inc/subscription_set.test.php
diff options
context:
space:
mode:
authorKlap-in <klapinklapin@gmail.com>2013-01-26 21:03:14 +0100
committerKlap-in <klapinklapin@gmail.com>2013-01-26 21:03:14 +0100
commit3a2c510523e4ea91ab270c3075349f319e4bc95e (patch)
tree7fe2d24e5f4450cf78e9291e8a2899665274c636 /_test/tests/inc/subscription_set.test.php
parent5fd9b829e7d9947de0eeead685e0a0cf707eff88 (diff)
parent1a40fc9935bd06a440a844e081e4bfce5fce2932 (diff)
downloadrpg-3a2c510523e4ea91ab270c3075349f319e4bc95e.tar.gz
rpg-3a2c510523e4ea91ab270c3075349f319e4bc95e.tar.bz2
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to '_test/tests/inc/subscription_set.test.php')
-rw-r--r--_test/tests/inc/subscription_set.test.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/_test/tests/inc/subscription_set.test.php b/_test/tests/inc/subscription_set.test.php
deleted file mode 100644
index 5c0a6c816..000000000
--- a/_test/tests/inc/subscription_set.test.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/**
- * Tests the subscription set function
- */
-class subscription_set_test extends DokuWikiTest {
- /**
- * Tests, if overwriting subscriptions works even when subscriptions for the same
- * user exist for two nested namespaces, this is a test for the bug described in FS#2580
- */
- function test_overwrite() {
- subscription_set('admin', ':', 'digest', '123456789');
- subscription_set('admin', ':wiki:', 'digest', '123456789');
- subscription_set('admin', ':', 'digest', '1234', true);
- subscription_set('admin', ':wiki:', 'digest', '1234', true);
- $subscriptions = subscription_find(':wiki:', array('user' => 'admin'));
- $this->assertCount(1, $subscriptions[':'], 'More than one subscription saved for the root namespace even though the old one should have been overwritten.');
- $this->assertCount(1, $subscriptions[':wiki:'], 'More than one subscription saved for the wiki namespace even though the old one should have been overwritten.');
- $this->assertCount(2, $subscriptions, 'Didn\'t find the expected two subscriptions');
- }
-}