diff options
author | uckelman <uckelman@nomic.net> | 2010-04-30 16:47:06 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-30 16:47:06 +0000 |
commit | ee38615a2638bf5721517f88e54f2160e6a076a1 (patch) | |
tree | 463e204752da519b994045d1b8d8ad3c7a41c5ef /test | |
parent | 07ad87efa0f7f5ff0e503efb16c26314ffb1d31f (diff) |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/BridgeTest.php | 20 |
1 files changed, 1 insertions, 19 deletions
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) ); } @@ -220,24 +220,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 */ public function testGetDefaultForumId($list, $expected, $ex) { |