diff options
Diffstat (limited to 'test/BridgeTest.php')
-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) { |