summaryrefslogtreecommitdiff
path: root/test/BridgeTest.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-11 20:29:22 +0000
committeruckelman <uckelman@nomic.net>2010-04-11 20:29:22 +0000
commit8f30dcf18540991a722ae7e867c830903e706b83 (patch)
tree210adc1db5e523058089e7139e128ae7a3b68956 /test/BridgeTest.php
parent9669f8c5c994b9c7c5d960e5d920e97962f80322 (diff)
Adjusted test.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6681 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'test/BridgeTest.php')
-rw-r--r--test/BridgeTest.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/BridgeTest.php b/test/BridgeTest.php
index 386e2b2..1c78866 100644
--- a/test/BridgeTest.php
+++ b/test/BridgeTest.php
@@ -131,17 +131,18 @@ class BridgeTest extends PHPUnit_Framework_TestCase {
/**
* @dataProvider providerUnregisterMessage
*/
- public function testUnregisterMessage($messageId, $expected, $ex) {
+ public function testUnregisterMessage($messageId, $ex) {
if ($ex) $this->setExpectedException($ex);
$bridge = new Bridge($this->db);
- $this->assertEquals($expected, $bridge->unregisterMessage($messageId));
+ $bridge->unregisterMessage($messageId);
+ $this->assertEquals(false, $bridge->getPostId($messageId));
}
public function providerUnregisterMessage() {
return array(
- array(null, null, 'Exception'),
- array('<20100302094228.33F0310091@charybdis.ellipsis.cx>', true, null),
- array('<10100302094228.33F0310091@charybdis.ellipsis.cx>', null, 'Exception')
+ array(null, 'Exception'),
+ array('<20100302094228.33F0310091@charybdis.ellipsis.cx>', null),
+ array('<10100302094228.33F0310091@charybdis.ellipsis.cx>', 'Exception')
);
}