Compare commits

..

2 commits

Author SHA1 Message Date
rxu
2968c2859a
Merge 70160d646c into 1b2ac50cfd 2025-05-05 03:14:18 +00:00
rxu
70160d646c
[ticket/17491] Add test
PHPBB-17491
2025-05-05 10:13:45 +07:00

View file

@ -223,8 +223,6 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case
public function test_caching_search_results()
{
global $phpbb_root_path;
// Sphinx search doesn't use phpBB search results caching
if (strpos($this->search_backend, 'fulltext_sphinx'))
{
@ -328,7 +326,7 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case
$finder
->name('data_search_results_*.php')
->files()
->in($phpbb_root_path . 'cache/' . PHPBB_ENVIRONMENT);
->in(__DIR__ . '/../../../phpBB/cache/' . PHPBB_ENVIRONMENT);
$iterator = $finder->getIterator();
$iterator->rewind();
$cache_filename = $iterator->current();