From ee38615a2638bf5721517f88e54f2160e6a076a1 Mon Sep 17 00:00:00 2001 From: uckelman Date: Fri, 30 Apr 2010 16:47:06 +0000 Subject: Working to get tests to pass. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6784 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/Bridge.php | 2 +- test/BridgeTest.php | 20 +------------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/Bridge.php b/src/Bridge.php index 719e91c..edbb4ce 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -108,7 +108,7 @@ class Bridge { 'VALUES (' . $this->db->quote($messageId) . ', ' . $this->quote($inReplyTo) . - ')' + ')'; $count = $this->db->exec($sql); return $count == 1 ? $this->db->lastInsertId() : false; diff --git a/test/BridgeTest.php b/test/BridgeTest.php index bf13ee0..979cc1a 100644 --- a/test/BridgeTest.php +++ b/test/BridgeTest.php @@ -121,7 +121,7 @@ class BridgeTest extends PHPUnit_Framework_TestCase { $bridge = new Bridge($this->db); $this->assertEquals( $expected, - $bridge->registerMessage($editId, $messageId, $inReplyTo) + $bridge->registerByEditId($editId, $messageId, $inReplyTo) ); } @@ -219,24 +219,6 @@ class BridgeTest extends PHPUnit_Framework_TestCase { ); } - /** - * @dataProvider providerUnregisterPost - */ - public function testUnregisterPost($postId, $ex) { - if ($ex) $this->setExpectedException($ex); - $bridge = new Bridge($this->db); - $bridge->unregisterPost($postId); - $this->assertEquals(false, $bridge->getMessageId($postId)); - } - - public function providerUnregisterPost() { - return array( - array(null, 'Exception'), - array(0, 'Exception'), - array(1, null), - ); - } - /** * @dataProvider providerGetDefaultForumId */ -- cgit v1.2.3