[ticket/283] Mark shortened message test skipped if trimmessage not available
B3P-283
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user