summaryrefslogtreecommitdiffstats
path: root/tests/php/Service/RecordingServiceTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/php/Service/RecordingServiceTest.php')
-rw-r--r--tests/php/Service/RecordingServiceTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/php/Service/RecordingServiceTest.php b/tests/php/Service/RecordingServiceTest.php
index b259f579c..8b3f9daaf 100644
--- a/tests/php/Service/RecordingServiceTest.php
+++ b/tests/php/Service/RecordingServiceTest.php
@@ -72,17 +72,17 @@ class RecordingServiceTest extends TestCase {
}
/**
- * @dataProvider dataSanitizeFileName
+ * @dataProvider dataValidateFileName
*/
- public function testSanitizeFileName(string $name, string $expected, string $exceptionMessage): void {
+ public function testValidateFileName(string $name, string $expected, string $exceptionMessage): void {
if ($exceptionMessage) {
$this->expectExceptionMessage($exceptionMessage);
}
- $actual = $this->recordingService->sanitizeFileName($name);
+ $actual = $this->recordingService->validateFileName($name);
$this->assertEquals($expected, $actual);
}
- public function dataSanitizeFileName(): array {
+ public function dataValidateFileName(): array {
return [
['a/b', '', 'file_name'],
['a`b', '', 'file_name'],