mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/17176] Remove no longer needed backward compatible phpunit code
PHPBB3-17176
This commit is contained in:
@@ -88,8 +88,8 @@ class phpbb_storage_adapter_local_subfolders_test extends phpbb_local_test_case
|
||||
$this->adapter->delete('file.txt');
|
||||
|
||||
// Then
|
||||
$this->assertFileNotExists($this->path . '3d/8e/file.txt');
|
||||
$this->assertFileNotExists($this->path . '3d');
|
||||
$this->assertFileDoesNotExist($this->path . '3d/8e/file.txt');
|
||||
$this->assertFileDoesNotExist($this->path . '3d');
|
||||
}
|
||||
|
||||
public function test_rename(): void
|
||||
@@ -102,9 +102,9 @@ class phpbb_storage_adapter_local_subfolders_test extends phpbb_local_test_case
|
||||
$this->adapter->rename('file.txt', 'file2.txt');
|
||||
|
||||
// Then
|
||||
$this->assertFileNotExists($this->path . '3d/8e/file.txt');
|
||||
$this->assertFileDoesNotExist($this->path . '3d/8e/file.txt');
|
||||
$this->assertFileExists($this->path . '27/36/file2.txt');
|
||||
$this->assertFileNotExists($this->path . '3d');
|
||||
$this->assertFileDoesNotExist($this->path . '3d');
|
||||
|
||||
// Clean test
|
||||
unlink($this->path . '27/36/file2.txt');
|
||||
|
@@ -77,7 +77,7 @@ class phpbb_storage_adapter_local_test extends phpbb_local_test_case
|
||||
$this->adapter->delete('file.txt');
|
||||
|
||||
// Then
|
||||
$this->assertFileNotExists($this->path . 'file.txt');
|
||||
$this->assertFileDoesNotExist($this->path . 'file.txt');
|
||||
}
|
||||
|
||||
public function test_rename(): void
|
||||
@@ -85,13 +85,13 @@ class phpbb_storage_adapter_local_test extends phpbb_local_test_case
|
||||
// Given
|
||||
touch($this->path . 'file.txt');
|
||||
$this->assertFileExists($this->path . 'file.txt');
|
||||
$this->assertFileNotExists($this->path . 'file2.txt');
|
||||
$this->assertFileDoesNotExist($this->path . 'file2.txt');
|
||||
|
||||
// When
|
||||
$this->adapter->rename('file.txt', 'file2.txt');
|
||||
|
||||
// Then
|
||||
$this->assertFileNotExists($this->path . 'file.txt');
|
||||
$this->assertFileDoesNotExist($this->path . 'file.txt');
|
||||
$this->assertFileExists($this->path . 'file2.txt');
|
||||
|
||||
// Clean test
|
||||
|
Reference in New Issue
Block a user