Skip to content

Commit

Permalink
chore(test): declare data provider functions static
Browse files Browse the repository at this point in the history
  • Loading branch information
thlehmann-ionos committed Aug 23, 2024
1 parent 59a17b4 commit 45eecc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Controller/AuthSettingsControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function testDestroyWrongUser() {
$this->assertSame(\OCP\AppFramework\Http::STATUS_NOT_FOUND, $response->getStatus());
}

public function dataRenameToken(): array {
public static function dataRenameToken(): array {
return [
'App password => Other token name' => ['App password', 'Other token name'],
'Other token name => App password' => ['Other token name', 'App password'],
Expand Down Expand Up @@ -280,7 +280,7 @@ public function testUpdateRename(string $name, string $newName): void {
$this->assertSame([], $this->controller->update($tokenId, ['filesystem' => true], $newName));
}

public function dataUpdateFilesystemScope(): array {
public static function dataUpdateFilesystemScope(): array {
return [
'Grant filesystem access' => [false, true],
'Revoke filesystem access' => [true, false],
Expand Down

0 comments on commit 45eecc9

Please sign in to comment.