diff options
author | Aryeh Gregor <ayg@aryeh.name> | 2019-10-23 16:34:53 +0300 |
---|---|---|
committer | daniel <dkinzler@wikimedia.org> | 2019-11-04 15:17:56 +0100 |
commit | 84cf385db01cbf13ff189199ee543acbf9898de7 (patch) | |
tree | a8c06c28ea42d480db0654e8a8b249f578f5900c /tests/phpunit/unit/includes/filebackend/FileBackendGroupTestTrait.php | |
parent | b19bbb5e5f2f60159a1781ccfd42b8cc8292cd98 (diff) | |
download | mediawikicore-84cf385db01cbf13ff189199ee543acbf9898de7.tar.gz mediawikicore-84cf385db01cbf13ff189199ee543acbf9898de7.zip |
Deprecate FileJournal::factory
Instead, the constructors for FileJournal and NullFileJournal should be
treated as stable. I would have added @stable, but our linting doesn't
recognize it yet and doesn't let.
Bug: T235066
Change-Id: I7741055b4f00197d1346ebbfebc14f20238a06f3
Diffstat (limited to 'tests/phpunit/unit/includes/filebackend/FileBackendGroupTestTrait.php')
-rw-r--r-- | tests/phpunit/unit/includes/filebackend/FileBackendGroupTestTrait.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/unit/includes/filebackend/FileBackendGroupTestTrait.php b/tests/phpunit/unit/includes/filebackend/FileBackendGroupTestTrait.php index c4527d128646..63e6093bb767 100644 --- a/tests/phpunit/unit/includes/filebackend/FileBackendGroupTestTrait.php +++ b/tests/phpunit/unit/includes/filebackend/FileBackendGroupTestTrait.php @@ -249,8 +249,7 @@ trait FileBackendGroupTestTrait { 'class' => FSFileBackend::class, 'lockManager' => $this->lmgFactory->getLockManagerGroup( self::getWikiID() )->get( 'fsLockManager' ), - 'fileJournal' => - FileJournal::factory( [ 'class' => NullFileJournal::class ], 'local-backend' ), + 'fileJournal' => new NullFileJournal, ], $config ); // For config values that are objects, check object identity. |