summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-22 21:01:23 +0000
committeruckelman <uckelman@nomic.net>2010-04-22 21:01:23 +0000
commitd793da38f5d9da9cde93b0e4a4c03987241f3de6 (patch)
tree646aef87dfa00a465afb21774e3636e721497d5c
parent87bf17db21e92638f5dd3ab776326755dad0867f (diff)
Fixed unregisterPost().
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6730 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r--src/Bridge.php2
-rw-r--r--test/BridgeTest.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Bridge.php b/src/Bridge.php
index ba6ccc8..0125363 100644
--- a/src/Bridge.php
+++ b/src/Bridge.php
@@ -107,7 +107,7 @@ class Bridge {
$count = $this->db->exec($sql);
if ($count != 1) {
- throw new Exception('Failed to delete message id: ' . $messageId);
+ throw new Exception('Failed to delete post id: ' . $postId);
}
}
diff --git a/test/BridgeTest.php b/test/BridgeTest.php
index eabcabe..8aaba04 100644
--- a/test/BridgeTest.php
+++ b/test/BridgeTest.php
@@ -177,8 +177,8 @@ class BridgeTest extends PHPUnit_Framework_TestCase {
public function providerUnregisterPost() {
return array(
array(null, 'Exception'),
- array(1, 'Exception'),
- array(2, null),
+ array(0, 'Exception'),
+ array(1, null),
);
}