Skip to content

Commit 9ed9a31

Browse files
committed
fix: added Test\TestCase namespace for failing tests
Signed-off-by: yemkareems <[email protected]>
1 parent 674381e commit 9ed9a31

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

apps/files_versions/tests/GetAutoExpireListTest.php

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace OCA\Files_Versions\Tests;
99

1010
use OCA\Files_Versions\Storage;
11+
use Test\TestCase;
1112

1213
class GetAutoExpireListTest extends TestCase {
1314

@@ -31,9 +32,7 @@ private static function callGetAutoExpireList(int $now, array $versions): array
3132
return $method->invoke(null, $now, $versions);
3233
}
3334

34-
/**
35-
* @dataProvider provideBucketKeepsLatest
36-
*/
35+
#[\PHPUnit\Framework\Attributes\DataProvider('provideBucketKeepsLatest')]
3736
public function testBucketKeepsLatest(int $age1, int $age2, int $size1, int $size2): void {
3837
$now = time();
3938

@@ -108,9 +107,7 @@ public static function provideBucketKeepsLatest(): array {
108107
];
109108
}
110109

111-
/**
112-
* @dataProvider provideVersionRetentionRanges
113-
*/
110+
#[\PHPUnit\Framework\Attributes\DataProvider('provideVersionRetentionRanges')]
114111
public function testRetentionOverTimeEveryTenMinutes(
115112
int $days,
116113
int $expectedMin,
@@ -170,13 +167,7 @@ public static function provideVersionRetentionRanges(): array {
170167
];
171168
}
172169

173-
/**
174-
* Exact deterministic retention count for evenly spaced versions.
175-
*
176-
* One version per hour, offset away from bucket edges.
177-
*
178-
* @dataProvider provideExactRetentionCounts
179-
*/
170+
#[\PHPUnit\Framework\Attributes\DataProvider('provideExactRetentionCounts')]
180171
public function testExactRetentionCounts(
181172
int $days,
182173
int $expectedRetained,

0 commit comments

Comments
 (0)