Skip to content

Commit f1b3420

Browse files
Copilotmiaulalala
andauthored
fix(tests): update testValidateParametersObject data to use typed values
Agent-Logs-Url: https://github.com/nextcloud/activity/sessions/f54c7c8a-f6d4-476c-9f7f-d9ed8f3677b6 Co-authored-by: miaulalala <7427347+miaulalala@users.noreply.github.com>
1 parent c5739ef commit f1b3420

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Controller/APIv2ControllerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ public static function dataValidateParametersObject(): array {
175175
return [
176176
['type', 42, 'type', 42],
177177
['type', '42', 'type', 42],
178-
[null, '42', '', 0],
179-
['type', null, '', 0],
178+
['', 42, '', 0],
179+
['type', 0, '', 0],
180180
];
181181
}
182182

183183
#[DataProvider('dataValidateParametersObject')]
184-
public function testValidateParametersObject(?string $type, mixed $id, string $expectedType, int $expectedId): void {
184+
public function testValidateParametersObject(string $type, mixed $id, string $expectedType, int $expectedId): void {
185185
$this->data->expects($this->once())
186186
->method('validateFilter')
187187
->willReturnArgument(0);

0 commit comments

Comments
 (0)