nextcloud/tests/lib/Preview
Anna Larch a9f177e743 test(db): call parent::tearDown() in DB test classes that skipped it
Eight test classes overrode tearDown() for custom DB cleanup but never
called parent::tearDown(). TestCase::tearDown() does three things these
tests were silently skipping after every test method:

- ILockingProvider::releaseAll() — unreleased locks bleed into subsequent
  tests and can cause deadlocks or unexpected NotFoundException
- Storage::getGlobalCache()->clearCache() — stale filecache entries from
  share/storage tests cause unrelated ObjectStore tests to receive false
  from fopen() (fseek() then fails with "Argument must be of type resource")
- UserMountCache::flush() — stale mount cache causes share lookups in
  later tests to fail with ShareNotFound

AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>
2026-05-26 21:20:57 +02:00
..
Storage fix(previews): use createParameter/setParameter to reuse query in chunk loop 2026-05-06 10:32:54 +02:00
BackgroundCleanupJobTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
GeneratorTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
HEICTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
ImageTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
MovieBrokenStuckFfmpegTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
MovieTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
MovieTestRemoteFile.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
MP3Test.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
OfficeTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
PostscriptTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
PreviewMapperTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
PreviewMigrationJobTest.php test(db): call parent::tearDown() in DB test classes that skipped it 2026-05-26 21:20:57 +02:00
PreviewServiceTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Provider.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
SVGTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
TXTTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00