FileJournal tests
authorAryeh Gregor <ayg@aryeh.name>
Thu, 22 Aug 2019 06:47:54 +0000 (09:47 +0300)
committerDaniel Kinzler <dkinzler@wikimedia.org>
Tue, 3 Sep 2019 10:12:41 +0000 (10:12 +0000)
commit5bbcaef2317fb88b1639cc8be3d6531033d709c3
tree12a37013c04d3cb9ea5e5608cbc02ea2748bc860
parent52a21ace03540c85c293e09898a90e048e2234bd
FileJournal tests

100% unit test coverage for FileJournal and NullFileJournal. 100%
integration test coverage for DBFileJournal. Unit tests for
DBFileJournal once it supports injection.

I removed FileJournal and NullFileJournal from the list of classes that
FileBackendTest tests. It doesn't actually test them, it just happens to
run code from them without checking its correctness at all.

Depends-On: Ic22075bb5e81b7c2c4c1b8647547aa55306a10a7
Change-Id: I46d10ab7b87c23937aa04d7ec1922abfcf3bd611
includes/filebackend/filejournal/DBFileJournal.php
includes/libs/filebackend/filejournal/FileJournal.php
tests/phpunit/MediaWikiIntegrationTestCase.php
tests/phpunit/includes/filebackend/FileBackendTest.php
tests/phpunit/includes/filebackend/filejournal/DBFileJournalIntegrationTest.php [new file with mode: 0644]
tests/phpunit/unit/includes/libs/filebackend/filejournal/FileJournalTest.php [new file with mode: 0644]
tests/phpunit/unit/includes/libs/filebackend/filejournal/NullFileJournalTest.php [new file with mode: 0644]
tests/phpunit/unit/includes/libs/filebackend/filejournal/TestFileJournal.php [new file with mode: 0644]