[ticket/269] Use trimmessage tool as extension and add test

B3P-269
This commit is contained in:
Marc Alexander committed 2014-06-27 17:39:16 +02:00
1 parent 87bf71684d
commit 7d0edf7403
3 files changed
+23 -12

No files matched your search

@@ -56,4 +56,19 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
$this->logout();
self::request('GET', 'app.php/portal');
}
public function test_shortened_message()
{
// Create topic as announcement
$data = $this->create_topic(2, 'Portal-announce-global', str_repeat('This is a global announcement for the portal', 6), array(
'topic_type' => POST_GLOBAL,
));
if (isset($data))
{
// no errors should appear on portal
$crawler = self::request('GET', 'app.php/portal');
$this->assertContains('This is a global announc [...]', $crawler->text());
}
}
}