1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 17:56:52 +02:00

[ticket/17176] Remove no longer needed backward compatible phpunit code

PHPBB3-17176
This commit is contained in:
Marc Alexander
2023-09-07 20:49:59 +02:00
parent 5d6218dcba
commit 4078ed7e20
15 changed files with 27 additions and 181 deletions

View File

@@ -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