diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-20 11:45:08 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-20 11:45:08 +0100 |
commit | f5c361cf44739058b79f322576a1bad2d8c142d9 (patch) | |
tree | a22217c6995751023112832d191d213e494e2fbc /tests/lib/LegacyHelperTest.php | |
parent | 37bb33c5799b834dfef3fb73936bd0e5a4773fb8 (diff) | |
download | nextcloud-server-f5c361cf44739058b79f322576a1bad2d8c142d9.tar.gz nextcloud-server-f5c361cf44739058b79f322576a1bad2d8c142d9.zip |
composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/LegacyHelperTest.php')
-rw-r--r-- | tests/lib/LegacyHelperTest.php | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/lib/LegacyHelperTest.php b/tests/lib/LegacyHelperTest.php index 4a253940931..08380dd50c9 100644 --- a/tests/lib/LegacyHelperTest.php +++ b/tests/lib/LegacyHelperTest.php @@ -112,9 +112,9 @@ class LegacyHelperTest extends \Test\TestCase { $viewMock->expects($this->exactly(2)) ->method('file_exists') ->withConsecutive( - // Conflict on filename.ext - ['dir/filename.ext'], - ['dir/filename (2).ext'], + // Conflict on filename.ext + ['dir/filename.ext'], + ['dir/filename (2).ext'], ) ->will($this->onConsecutiveCalls(true, false)); $this->assertEquals('dir/filename (2).ext', OC_Helper::buildNotExistingFileNameForView('dir', 'filename.ext', $viewMock)); @@ -123,9 +123,9 @@ class LegacyHelperTest extends \Test\TestCase { $viewMock->expects($this->exactly(3)) ->method('file_exists') ->withConsecutive( - ['dir/filename.ext'], - ['dir/filename (2).ext'], - ['dir/filename (3).ext'], + ['dir/filename.ext'], + ['dir/filename (2).ext'], + ['dir/filename (3).ext'], ) ->will($this->onConsecutiveCalls(true, true, false)); $this->assertEquals('dir/filename (3).ext', OC_Helper::buildNotExistingFileNameForView('dir', 'filename.ext', $viewMock)); @@ -134,8 +134,8 @@ class LegacyHelperTest extends \Test\TestCase { $viewMock->expects($this->exactly(2)) ->method('file_exists') ->withConsecutive( - ['dir/filename (1).ext'], - ['dir/filename (2).ext'], + ['dir/filename (1).ext'], + ['dir/filename (2).ext'], ) ->will($this->onConsecutiveCalls(true, false)); $this->assertEquals('dir/filename (2).ext', OC_Helper::buildNotExistingFileNameForView('dir', 'filename (1).ext', $viewMock)); @@ -144,8 +144,8 @@ class LegacyHelperTest extends \Test\TestCase { $viewMock->expects($this->exactly(2)) ->method('file_exists') ->withConsecutive( - ['dir/filename (2).ext'], - ['dir/filename (3).ext'], + ['dir/filename (2).ext'], + ['dir/filename (3).ext'], ) ->will($this->onConsecutiveCalls(true, false)); $this->assertEquals('dir/filename (3).ext', OC_Helper::buildNotExistingFileNameForView('dir', 'filename (2).ext', $viewMock)); @@ -154,9 +154,9 @@ class LegacyHelperTest extends \Test\TestCase { $viewMock->expects($this->exactly(3)) ->method('file_exists') ->withConsecutive( - ['dir/filename (2).ext'], - ['dir/filename (3).ext'], - ['dir/filename (4).ext'], + ['dir/filename (2).ext'], + ['dir/filename (3).ext'], + ['dir/filename (4).ext'], ) ->will($this->onConsecutiveCalls(true, true, false)); $this->assertEquals('dir/filename (4).ext', OC_Helper::buildNotExistingFileNameForView('dir', 'filename (2).ext', $viewMock)); @@ -165,8 +165,8 @@ class LegacyHelperTest extends \Test\TestCase { $viewMock->expects($this->exactly(2)) ->method('file_exists') ->withConsecutive( - ['dir/filename(1).ext'], - ['dir/filename(2).ext'], + ['dir/filename(1).ext'], + ['dir/filename(2).ext'], ) ->will($this->onConsecutiveCalls(true, false)); $this->assertEquals('dir/filename(2).ext', OC_Helper::buildNotExistingFileNameForView('dir', 'filename(1).ext', $viewMock)); @@ -175,8 +175,8 @@ class LegacyHelperTest extends \Test\TestCase { $viewMock->expects($this->exactly(2)) ->method('file_exists') ->withConsecutive( - ['dir/filename(1) (1).ext'], - ['dir/filename(1) (2).ext'], + ['dir/filename(1) (1).ext'], + ['dir/filename(1) (2).ext'], ) ->will($this->onConsecutiveCalls(true, false)); $this->assertEquals('dir/filename(1) (2).ext', OC_Helper::buildNotExistingFileNameForView('dir', 'filename(1) (1).ext', $viewMock)); @@ -185,9 +185,9 @@ class LegacyHelperTest extends \Test\TestCase { $viewMock->expects($this->exactly(3)) ->method('file_exists') ->withConsecutive( - ['dir/filename(1) (1).ext'], - ['dir/filename(1) (2).ext'], - ['dir/filename(1) (3).ext'], + ['dir/filename(1) (1).ext'], + ['dir/filename(1) (2).ext'], + ['dir/filename(1) (3).ext'], ) ->will($this->onConsecutiveCalls(true, true, false)); $this->assertEquals('dir/filename(1) (3).ext', OC_Helper::buildNotExistingFileNameForView('dir', 'filename(1) (1).ext', $viewMock)); @@ -196,8 +196,8 @@ class LegacyHelperTest extends \Test\TestCase { $viewMock->expects($this->exactly(2)) ->method('file_exists') ->withConsecutive( - ['dir/filename(1) (2) (3).ext'], - ['dir/filename(1) (2) (4).ext'], + ['dir/filename(1) (2) (3).ext'], + ['dir/filename(1) (2) (4).ext'], ) ->will($this->onConsecutiveCalls(true, false)); $this->assertEquals('dir/filename(1) (2) (4).ext', OC_Helper::buildNotExistingFileNameForView('dir', 'filename(1) (2) (3).ext', $viewMock)); |