summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-01-03 12:33:36 -0300
committerVitor Mattos <vitor@php.rio>2023-01-03 12:33:36 -0300
commit555b74c733e2e67ada66407013361d521e207d37 (patch)
treeb215816a758eafb2136b1dabe55fc92dfd0c2c03 /tests
parent5484a27cf2b81a6e3797a5b9365f270f15ac0b33 (diff)
Changes after code review
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-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'],