summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/BridgeTest.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/BridgeTest.php b/test/BridgeTest.php
index c078aaa..8688af3 100644
--- a/test/BridgeTest.php
+++ b/test/BridgeTest.php
@@ -206,6 +206,23 @@ class BridgeTest extends PHPUnit_Framework_TestCase {
}
/**
+ * @dataProvider providerRemovePost
+ */
+ public function testRemovePost($postId, $ex) {
+ if ($ex) $this->setExpectedException($ex);
+ $bridge = new Bridge($this->db);
+ $bridge->removePost($postId);
+ }
+
+ public function providerRemovePost() {
+ return array(
+ array(null, 'Exception'),
+ array(1, null),
+ array(2, 'Exception')
+ );
+ }
+
+ /**
* @dataProvider providerGetDefaultForumId
*/
public function testGetDefaultForumId($list, $expected, $ex) {