mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
test: adjust library tests for PHPunit deprecations
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
85c141e107
commit
9422b6d6d0
2 changed files with 4 additions and 4 deletions
|
|
@ -159,15 +159,15 @@ class AppManagerTest extends TestCase {
|
|||
}
|
||||
}
|
||||
|
||||
public function dataGetAppIcon(): array {
|
||||
public static function dataGetAppIcon(): array {
|
||||
$nothing = function ($appId) {
|
||||
$this->assertEquals('test', $appId);
|
||||
self::assertEquals('test', $appId);
|
||||
throw new \RuntimeException();
|
||||
};
|
||||
|
||||
$createCallback = function ($workingIcons) {
|
||||
return function ($appId, $icon) use ($workingIcons) {
|
||||
$this->assertEquals('test', $appId);
|
||||
self::assertEquals('test', $appId);
|
||||
if (in_array($icon, $workingIcons)) {
|
||||
return '/path/' . $icon;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -409,7 +409,7 @@ class FilenameValidatorTest extends TestCase {
|
|||
$this->assertEquals($expected, $validator->sanitizeFilename($filename));
|
||||
}
|
||||
|
||||
public function dataSanitizeFilename(): array {
|
||||
public static function dataSanitizeFilename(): array {
|
||||
return [
|
||||
'valid name' => [
|
||||
'a * b.txt', ['.htaccess'], [], [], [], 'a * b.txt'
|
||||
|
|
|
|||
Loading…
Reference in a new issue