mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/13904] Test move file on existing error
PHPBB3-13904
This commit is contained in:
parent
46e3d82196
commit
7ba0fe47a8
1 changed files with 8 additions and 0 deletions
|
@ -395,6 +395,14 @@ class phpbb_filespec_test extends phpbb_test_case
|
||||||
$this->phpbb_root_path = $phpbb_root_path;
|
$this->phpbb_root_path = $phpbb_root_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_move_file_error()
|
||||||
|
{
|
||||||
|
$filespec = $this->get_filespec();
|
||||||
|
$this->assertFalse($filespec->move_file('foobar'));
|
||||||
|
$filespec->error[] = 'foo';
|
||||||
|
$this->assertFalse($filespec->move_file('foo'));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider clean_filename_variables
|
* @dataProvider clean_filename_variables
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue