From fc511524418271bc6188fd72d3bd462831852f86 Mon Sep 17 00:00:00 2001 From: uckelman Date: Tue, 27 Apr 2010 19:31:59 +0000 Subject: Storing references is pointless, since PhpBB doesn't keep any thread info. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6764 67b53d14-2c14-4ace-a08f-0dab2b34000c --- test/BridgeTest.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/BridgeTest.php b/test/BridgeTest.php index 8aaba04..b72d974 100644 --- a/test/BridgeTest.php +++ b/test/BridgeTest.php @@ -21,18 +21,16 @@ class BridgeTest extends PHPUnit_Framework_TestCase { 'post_id MEDIUMINT UNSIGNED, ' . 'message_id VARCHAR(255) NOT NULL, ' . 'in_reply_to VARCHAR(255), ' . - 'refs BLOB, ' . 'UNIQUE KEY (post_id), ' . 'UNIQUE KEY (message_id))' ); $this->db->exec( - 'INSERT INTO posts (post_id, message_id, in_reply_to, refs) ' . + 'INSERT INTO posts (post_id, message_id, in_reply_to) ' . 'VALUES (' . '1, ' . '"<20100302094228.33F0310091@charybdis.ellipsis.cx>", ' . - '"<1267473003.m2f.17543@www.vassalengine.org>", ' . - '"<1267171317.m2f.17507@www.vassalengine.org> <1267473003.m2f.17543@www.vassalengine.org>"' . + '"<1267473003.m2f.17543@www.vassalengine.org>"' . ')' ); @@ -98,13 +96,13 @@ class BridgeTest extends PHPUnit_Framework_TestCase { /** * @dataProvider providerRegisterMessage */ - public function testRegisterMessage($postId, $messageId, $inReplyTo, $refs, + public function testRegisterMessage($postId, $messageId, $inReplyTo, $expected, $ex) { if ($ex) $this->setExpectedException($ex); $bridge = new Bridge($this->db); $this->assertEquals( $expected, - $bridge->registerMessage($postId, $messageId, $inReplyTo, $refs) + $bridge->registerMessage($postId, $messageId, $inReplyTo) ); } -- cgit v1.2.3