Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: added Test\TestCase namespace for failing tests
Signed-off-by: yemkareems <[email protected]>
  • Loading branch information
yemkareems committed Dec 24, 2025
commit 9ed9a317f5a9afed2e9d6f674011dc09e941ac95
17 changes: 4 additions & 13 deletions apps/files_versions/tests/GetAutoExpireListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace OCA\Files_Versions\Tests;

use OCA\Files_Versions\Storage;
use Test\TestCase;

class GetAutoExpireListTest extends TestCase {

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

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

Expand Down Expand Up @@ -108,9 +107,7 @@ public static function provideBucketKeepsLatest(): array {
];
}

/**
* @dataProvider provideVersionRetentionRanges
*/
#[\PHPUnit\Framework\Attributes\DataProvider('provideVersionRetentionRanges')]
public function testRetentionOverTimeEveryTenMinutes(
int $days,
int $expectedMin,
Expand Down Expand Up @@ -170,13 +167,7 @@ public static function provideVersionRetentionRanges(): array {
];
}

/**
* Exact deterministic retention count for evenly spaced versions.
*
* One version per hour, offset away from bucket edges.
*
* @dataProvider provideExactRetentionCounts
*/
#[\PHPUnit\Framework\Attributes\DataProvider('provideExactRetentionCounts')]
public function testExactRetentionCounts(
int $days,
int $expectedRetained,
Expand Down
Loading