Skip to content

Commit

Permalink
Add tests for paths with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo-d committed Apr 12, 2024
1 parent 5003653 commit 44f6186
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Unit/SettingsAddPathsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ public static function dataAddPaths()
'extra' => array('path/1', 'path/subdir/3'),
'expected' => array('path/1', 'path/subdir/2', 'path/1', 'path/subdir/3'),
),
'Paths passed on CLI, paths with spaces' => array(
'original' => array('path with/spaces between/1', 'path with/spaces between/subdir/2'),
'extra' => array('path/1', 'path/subdir/3', 'path/with spaces'),
'expected' => array('path with/spaces between/1', 'path with/spaces between/subdir/2', 'path/1', 'path/subdir/3', 'path/with spaces'),

Check warning on line 65 in tests/Unit/SettingsAddPathsTest.php

View workflow job for this annotation

GitHub Actions / Run style linter

Line exceeds 135 characters; contains 150 characters
)
);
}
}

0 comments on commit 44f6186

Please sign in to comment.