Skip to content

Commit

Permalink
[TASK] Simplidy clear cache step test
Browse files Browse the repository at this point in the history
  • Loading branch information
fsuter committed Jan 20, 2025
1 parent a5e2555 commit 6f4fa5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions Tests/Functional/Fixtures/ClearCacheStepPreviewTest.csv

This file was deleted.

18 changes: 0 additions & 18 deletions Tests/Functional/ImporterPreviewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -951,18 +951,6 @@ public static function clearCachePreviewProvider(): array
#[Test] #[DataProvider('clearCachePreviewProvider')]
public function runPreviewOnClearCacheStepReturnsCacheListAndClearsNothing(string $table, mixed $index, array $result): void
{
try {
$this->importCSVDataSet(__DIR__ . '/Fixtures/ClearCacheStepPreviewTest.csv');
} catch (\Exception $e) {
self::markTestSkipped(
sprintf(
VersionNumberUtility::convertVersionNumberToInteger(
VersionNumberUtility::getNumericTypo3Version()
) . ': Could not load fixture file: %s',
$e->getMessage()
)
);
}
$this->subject->setPreviewStep(ClearCacheStep::class);
$this->subject->setTestMode(true);
$messages = $this->subject->synchronize(
Expand All @@ -973,12 +961,6 @@ public function runPreviewOnClearCacheStepReturnsCacheListAndClearsNothing(strin
$result,
$this->subject->getPreviewData()
);
// The cache item created with the fixture should not have been cleared
$countCacheItems = $this->selectCount(
'id',
'cache_pages_tags'
);
self::assertEquals(1, $countCacheItems);
}

#[Test]
Expand Down

0 comments on commit 6f4fa5b

Please sign in to comment.