public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/forums:origin/3.2.x commit in: tests/test_framework/
@ 2019-05-04  5:20 Jimi Huotari
  0 siblings, 0 replies; only message in thread
From: Jimi Huotari @ 2019-05-04  5:20 UTC (permalink / raw
  To: gentoo-commits

commit:     58f33921b56c3524e5c2b2c15bbf0dddea1ff461
Author:     Marc Alexander <admin <AT> m-a-styles <DOT> de>
AuthorDate: Tue Apr 23 18:41:37 2019 +0000
Commit:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
CommitDate: Wed Apr 24 19:05:55 2019 +0000
URL:        https://gitweb.gentoo.org/proj/forums.git/commit/?id=58f33921

[ticket/16027] Force clearing of cache folder on install for functional

PHPBB3-16027

 tests/test_framework/phpbb_functional_test_case.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index d4856f954..4d294fd52 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -397,6 +397,14 @@ class phpbb_functional_test_case extends phpbb_test_case
 		global $phpbb_container;
 		$phpbb_container->reset();
 
+		// Purge cache to remove cached files
+		$phpbb_container = new phpbb_mock_container_builder();
+		$phpbb_container->setParameter('core.environment', PHPBB_ENVIRONMENT);
+		$phpbb_container->setParameter('core.cache_dir', $phpbb_root_path . 'cache/' . PHPBB_ENVIRONMENT . '/');
+
+		$cache = new \phpbb\cache\driver\file;
+		$cache->purge();
+
 		$blacklist = ['phpbb_class_loader_mock', 'phpbb_class_loader_ext', 'phpbb_class_loader'];
 
 		foreach (array_keys($GLOBALS) as $key)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-04  5:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-04  5:20 [gentoo-commits] proj/forums:origin/3.2.x commit in: tests/test_framework/ Jimi Huotari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox