mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13577] Skip functional tests requiring fileinfo if not enabled
PHPBB3-13577
This commit is contained in:
parent
1e4853507a
commit
c1d644769f
1 changed files with 15 additions and 0 deletions
|
@ -66,6 +66,11 @@ class phpbb_functional_download_test extends phpbb_functional_test_case
|
||||||
|
|
||||||
public function test_download_accessible()
|
public function test_download_accessible()
|
||||||
{
|
{
|
||||||
|
if (!class_exists('finfo'))
|
||||||
|
{
|
||||||
|
$this->markTestSkipped('Unable to run test with fileinfo disabled');
|
||||||
|
}
|
||||||
|
|
||||||
$this->load_ids(array(
|
$this->load_ids(array(
|
||||||
'forums' => array(
|
'forums' => array(
|
||||||
'Download #1',
|
'Download #1',
|
||||||
|
@ -118,6 +123,11 @@ class phpbb_functional_download_test extends phpbb_functional_test_case
|
||||||
|
|
||||||
public function test_download_softdeleted_post()
|
public function test_download_softdeleted_post()
|
||||||
{
|
{
|
||||||
|
if (!class_exists('finfo'))
|
||||||
|
{
|
||||||
|
$this->markTestSkipped('Unable to run test with fileinfo disabled');
|
||||||
|
}
|
||||||
|
|
||||||
$this->load_ids(array(
|
$this->load_ids(array(
|
||||||
'forums' => array(
|
'forums' => array(
|
||||||
'Download #1',
|
'Download #1',
|
||||||
|
@ -180,6 +190,11 @@ class phpbb_functional_download_test extends phpbb_functional_test_case
|
||||||
|
|
||||||
public function test_download_softdeleted_topic()
|
public function test_download_softdeleted_topic()
|
||||||
{
|
{
|
||||||
|
if (!class_exists('finfo'))
|
||||||
|
{
|
||||||
|
$this->markTestSkipped('Unable to run test with fileinfo disabled');
|
||||||
|
}
|
||||||
|
|
||||||
$this->load_ids(array(
|
$this->load_ids(array(
|
||||||
'forums' => array(
|
'forums' => array(
|
||||||
'Download #1',
|
'Download #1',
|
||||||
|
|
Loading…
Add table
Reference in a new issue