diff options
author | Máté Bartus <mate.bartus@gmail.com> | 2016-01-08 14:24:24 +0100 |
---|---|---|
committer | Máté Bartus <mate.bartus@gmail.com> | 2016-01-08 14:24:24 +0100 |
commit | 2f7517a0fecc1c563c0d023eac0cd3057f77e13b (patch) | |
tree | 0e8b355589ed3437975aa06a2b966861a1cabf96 | |
parent | a7058d968ff2e4b4cb4b32fb3f7284bd1a539c93 (diff) | |
parent | cf1fc202975aa055d0bb926a5dce1c3896bbd1e1 (diff) | |
download | forums-2f7517a0fecc1c563c0d023eac0cd3057f77e13b.tar forums-2f7517a0fecc1c563c0d023eac0cd3057f77e13b.tar.gz forums-2f7517a0fecc1c563c0d023eac0cd3057f77e13b.tar.bz2 forums-2f7517a0fecc1c563c0d023eac0cd3057f77e13b.tar.xz forums-2f7517a0fecc1c563c0d023eac0cd3057f77e13b.zip |
Merge pull request #4111 from marc1706/ticket/14394
[ticket/14394] Only purge cache in functional tests if necessary
-rw-r--r-- | tests/functional/extension_acp_test.php | 2 | ||||
-rw-r--r-- | tests/functional/extension_global_lang_test.php | 7 | ||||
-rw-r--r-- | tests/functional/feed_test.php | 6 | ||||
-rw-r--r-- | tests/functional/metadata_manager_test.php | 7 | ||||
-rw-r--r-- | tests/functional/plupload_test.php | 1 | ||||
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 1 |
6 files changed, 23 insertions, 1 deletions
diff --git a/tests/functional/extension_acp_test.php b/tests/functional/extension_acp_test.php index 7be8957ec7..8a71a5ce04 100644 --- a/tests/functional/extension_acp_test.php +++ b/tests/functional/extension_acp_test.php @@ -41,6 +41,8 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case { parent::setUp(); + $this->purge_cache(); + $this->get_db(); // Clear the phpbb_ext table diff --git a/tests/functional/extension_global_lang_test.php b/tests/functional/extension_global_lang_test.php index 53bb9af5ca..f615114c08 100644 --- a/tests/functional/extension_global_lang_test.php +++ b/tests/functional/extension_global_lang_test.php @@ -52,6 +52,13 @@ class phpbb_functional_extension_global_lang_test extends phpbb_functional_test_ $this->purge_cache(); } + public function tearDown() + { + parent::tearDown(); + + $this->purge_cache(); + } + public function test_load_extension_lang_globally() { $this->phpbb_extension_manager->enable('foo/bar'); diff --git a/tests/functional/feed_test.php b/tests/functional/feed_test.php index ad5c4a5cab..e48dfc043a 100644 --- a/tests/functional/feed_test.php +++ b/tests/functional/feed_test.php @@ -20,6 +20,12 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case static public $init_values = array(); + public function setUp() + { + parent::setUp(); + $this->purge_cache(); + } + public function __construct($name = null, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); diff --git a/tests/functional/metadata_manager_test.php b/tests/functional/metadata_manager_test.php index 080822d249..0d2fdf082e 100644 --- a/tests/functional/metadata_manager_test.php +++ b/tests/functional/metadata_manager_test.php @@ -24,6 +24,13 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case 'foo/bar/', ); + public function tearDown() + { + $this->purge_cache(); + + parent::tearDown(); + } + static public function setUpBeforeClass() { parent::setUpBeforeClass(); diff --git a/tests/functional/plupload_test.php b/tests/functional/plupload_test.php index ee71597ffc..d358681ad1 100644 --- a/tests/functional/plupload_test.php +++ b/tests/functional/plupload_test.php @@ -33,6 +33,7 @@ class phpbb_functional_plupload_test extends phpbb_functional_test_case public function setUp() { parent::setUp(); + $this->purge_cache(); $this->set_extension_group_permission(1); $this->path = __DIR__ . '/fixtures/files/'; $this->add_lang('posting'); diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index d403831626..04e8f71379 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -89,7 +89,6 @@ class phpbb_functional_test_case extends phpbb_test_case // that were added in other tests are gone $this->lang = array(); $this->add_lang('common'); - $this->purge_cache(); $db = $this->get_db(); |