summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-11 20:46:49 +0000
committeruckelman <uckelman@nomic.net>2010-04-11 20:46:49 +0000
commitcb0a28a4e77c41e149efddce5c79ff6dd6c4ab63 (patch)
tree2eed01bc28bb0c34fe418b4298c47ac54ae6102d /test
parent6af518db11e22b8655e81ac9aa51486246f5d12c (diff)
Added getLists().
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6683 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'test')
-rw-r--r--test/BridgeTest.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/BridgeTest.php b/test/BridgeTest.php
index 1c78866..d31f37d 100644
--- a/test/BridgeTest.php
+++ b/test/BridgeTest.php
@@ -164,6 +164,23 @@ class BridgeTest extends PHPUnit_Framework_TestCase {
}
/**
+ * @dataProvider providerGetLists
+ */
+ public function testGetLists($forumId, $expected, $ex) {
+ if ($ex) $this->setExpectedException($ex);
+ $bridge = new Bridge($this->db);
+ $this->assertEquals($expected, $bridge->getLists($forumId));
+ }
+
+ public function providerGetLists() {
+ return array(
+ array(null, null, 'Exception'),
+ array('bogus', false, null),
+ array(2, array('messages@forums.vassalengine.org'), null)
+ );
+ }
+
+ /**
* @dataProvider providerSetPostId
*/
public function testSetPostId($messageId, $postId, $ex) {