mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-22 18:08:54 +00:00
Compare commits
2 commits
2968c2859a
...
5fd622f318
Author | SHA1 | Date | |
---|---|---|---|
|
5fd622f318 | ||
|
97ac9cc783 |
1 changed files with 3 additions and 1 deletions
|
@ -223,6 +223,8 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case
|
||||||
|
|
||||||
public function test_caching_search_results()
|
public function test_caching_search_results()
|
||||||
{
|
{
|
||||||
|
global $phpbb_root_path;
|
||||||
|
|
||||||
// Sphinx search doesn't use phpBB search results caching
|
// Sphinx search doesn't use phpBB search results caching
|
||||||
if (strpos($this->search_backend, 'fulltext_sphinx'))
|
if (strpos($this->search_backend, 'fulltext_sphinx'))
|
||||||
{
|
{
|
||||||
|
@ -326,7 +328,7 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case
|
||||||
$finder
|
$finder
|
||||||
->name('data_search_results_*.php')
|
->name('data_search_results_*.php')
|
||||||
->files()
|
->files()
|
||||||
->in(__DIR__ . '/../../../phpBB/cache/' . PHPBB_ENVIRONMENT);
|
->in($phpbb_root_path . 'cache/' . PHPBB_ENVIRONMENT);
|
||||||
$iterator = $finder->getIterator();
|
$iterator = $finder->getIterator();
|
||||||
$iterator->rewind();
|
$iterator->rewind();
|
||||||
$cache_filename = $iterator->current();
|
$cache_filename = $iterator->current();
|
||||||
|
|
Loading…
Add table
Reference in a new issue