[ticket/283] Mark shortened message test skipped if trimmessage not available

B3P-283
This commit is contained in:
Marc Alexander
2014-07-06 22:07:44 +02:00
parent 5d441c68b6
commit cd43291738

View File

@@ -59,6 +59,11 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
public function test_shortened_message()
{
if (!class_exists('\nickvergessen\trimmessage\trim_message'))
{
$this->markTestSkipped('trimmessage is not available for testing.');
}
// 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,