From d793da38f5d9da9cde93b0e4a4c03987241f3de6 Mon Sep 17 00:00:00 2001 From: uckelman Date: Thu, 22 Apr 2010 21:01:23 +0000 Subject: Fixed unregisterPost(). git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6730 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/Bridge.php | 2 +- test/BridgeTest.php | 4 ++-- 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), ); } -- cgit v1.2.3