[ticket/669] Purge cache if necessary in functional tests
B3P-669
This commit is contained in:
@@ -15,6 +15,7 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
|
|||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
$this->purge_cache();
|
||||||
|
|
||||||
$this->login();
|
$this->login();
|
||||||
$this->admin_login();
|
$this->admin_login();
|
||||||
@@ -59,6 +60,11 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
|
|||||||
|
|
||||||
public function test_shortened_message()
|
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
|
// Create topic as announcement
|
||||||
$data = $this->create_topic(2, 'Portal-announce-global', str_repeat('This is a global announcement for the portal', 6), array(
|
$data = $this->create_topic(2, 'Portal-announce-global', str_repeat('This is a global announcement for the portal', 6), array(
|
||||||
'topic_type' => POST_GLOBAL,
|
'topic_type' => POST_GLOBAL,
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ class phpbb_functional_portal_birthday_list_test extends \board3\portal\tests\te
|
|||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
$this->purge_cache();
|
||||||
|
|
||||||
$this->login();
|
$this->login();
|
||||||
$this->admin_login();
|
$this->admin_login();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ class phpbb_functional_portal_no_error_test extends \board3\portal\tests\testfra
|
|||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
$this->purge_cache();
|
||||||
|
|
||||||
$this->login();
|
$this->login();
|
||||||
$this->admin_login();
|
$this->admin_login();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user