Merge pull request #670 from marc1706/ticket/669
[ticket/669] Purge cache if necessary in functional tests
This commit is contained in:
@@ -15,6 +15,7 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->purge_cache();
|
||||
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
@@ -59,6 +60,11 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
|
||||
|
||||
public function test_shortened_message()
|
||||
{
|
||||
if (!class_exists('\Nickvergessen\TrimMessage\TrimMessage'))
|
||||
{
|
||||
$this->markTestSkipped('Unable to test shortening message without TrimMessage tool');
|
||||
}
|
||||
|
||||
// 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,
|
||||
|
||||
@@ -16,6 +16,8 @@ class phpbb_functional_portal_birthday_list_test extends \board3\portal\tests\te
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->purge_cache();
|
||||
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@ class phpbb_functional_portal_no_error_test extends \board3\portal\tests\testfra
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->purge_cache();
|
||||
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user