mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10354] Include cache directory path in unwritable message.
When template tests are skipped because cache directory is not writable, include path to the cache directory into the message saying it is not writable. PHPBB3-10354
This commit is contained in:
parent
0d41385344
commit
1061e881bd
1 changed files with 3 additions and 2 deletions
|
@ -63,9 +63,10 @@ class phpbb_template_template_test extends phpbb_test_case
|
||||||
// Test the engine can be used
|
// Test the engine can be used
|
||||||
$this->setup_engine();
|
$this->setup_engine();
|
||||||
|
|
||||||
if (!is_writable(dirname($this->template->cachepath)))
|
$template_cache_dir = dirname($this->template->cachepath);
|
||||||
|
if (!is_writable($template_cache_dir))
|
||||||
{
|
{
|
||||||
$this->markTestSkipped("Template cache directory is not writable.");
|
$this->markTestSkipped("Template cache directory ({$template_cache_dir}) is not writable.");
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (glob($this->template->cachepath . '*') as $file)
|
foreach (glob($this->template->cachepath . '*') as $file)
|
||||||
|
|
Loading…
Add table
Reference in a new issue