[ticket/14394] Only purge cache in functional tests if necessary

PHPBB3-14394
This commit is contained in:
Marc Alexander 2016-01-07 10:31:21 +01:00
parent e75c04f02a
commit cf1fc20297
6 changed files with 23 additions and 1 deletions

View file

@ -41,6 +41,8 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case
{ {
parent::setUp(); parent::setUp();
$this->purge_cache();
$this->get_db(); $this->get_db();
// Clear the phpbb_ext table // Clear the phpbb_ext table

View file

@ -52,6 +52,13 @@ class phpbb_functional_extension_global_lang_test extends phpbb_functional_test_
$this->purge_cache(); $this->purge_cache();
} }
public function tearDown()
{
parent::tearDown();
$this->purge_cache();
}
public function test_load_extension_lang_globally() public function test_load_extension_lang_globally()
{ {
$this->phpbb_extension_manager->enable('foo/bar'); $this->phpbb_extension_manager->enable('foo/bar');

View file

@ -20,6 +20,12 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case
static public $init_values = array(); static public $init_values = array();
public function setUp()
{
parent::setUp();
$this->purge_cache();
}
public function __construct($name = null, array $data = array(), $dataName = '') public function __construct($name = null, array $data = array(), $dataName = '')
{ {
parent::__construct($name, $data, $dataName); parent::__construct($name, $data, $dataName);

View file

@ -24,6 +24,13 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case
'foo/bar/', 'foo/bar/',
); );
public function tearDown()
{
$this->purge_cache();
parent::tearDown();
}
static public function setUpBeforeClass() static public function setUpBeforeClass()
{ {
parent::setUpBeforeClass(); parent::setUpBeforeClass();

View file

@ -33,6 +33,7 @@ class phpbb_functional_plupload_test extends phpbb_functional_test_case
public function setUp() public function setUp()
{ {
parent::setUp(); parent::setUp();
$this->purge_cache();
$this->set_extension_group_permission(1); $this->set_extension_group_permission(1);
$this->path = __DIR__ . '/fixtures/files/'; $this->path = __DIR__ . '/fixtures/files/';
$this->add_lang('posting'); $this->add_lang('posting');

View file

@ -89,7 +89,6 @@ class phpbb_functional_test_case extends phpbb_test_case
// that were added in other tests are gone // that were added in other tests are gone
$this->lang = array(); $this->lang = array();
$this->add_lang('common'); $this->add_lang('common');
$this->purge_cache();
$db = $this->get_db(); $db = $this->get_db();