diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2023-07-14 13:23:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2023-07-14 13:23:46 +0000 |
commit | 5551326fa05cdff429cde8b048b0ec9973c4e9bd (patch) | |
tree | 6abe22d5d3dd14647b336ab87f076e1286041bd4 /tests/phpunit/includes/filerepo | |
parent | 9e8b735140c15320ad1f4640be30cde2d8784377 (diff) | |
parent | 614cd4150761fd804c256e52a285169c002e558d (diff) | |
download | mediawikicore-5551326fa05cdff429cde8b048b0ec9973c4e9bd.tar.gz mediawikicore-5551326fa05cdff429cde8b048b0ec9973c4e9bd.zip |
Merge "tests: Migrate Database::delete calls to DeleteQueryBuilder"
Diffstat (limited to 'tests/phpunit/includes/filerepo')
-rw-r--r-- | tests/phpunit/includes/filerepo/file/LocalFileTest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/phpunit/includes/filerepo/file/LocalFileTest.php b/tests/phpunit/includes/filerepo/file/LocalFileTest.php index 7b9a8985be9e..1e5348c4f393 100644 --- a/tests/phpunit/includes/filerepo/file/LocalFileTest.php +++ b/tests/phpunit/includes/filerepo/file/LocalFileTest.php @@ -650,7 +650,10 @@ class LocalFileTest extends MediaWikiIntegrationTestCase { $this->assertTrue( $user->equals( $file->getUploader() ) ); // Make sure we were actually hitting the WAN cache - $dbw->delete( 'image', [ 'img_name' => 'Random-11m.png' ], __METHOD__ ); + $dbw->newDeleteQueryBuilder() + ->delete( 'image' ) + ->where( [ 'img_name' => 'Random-11m.png' ] ) + ->caller( __METHOD__ )->execute(); $file->invalidateCache(); $file = LocalFile::newFromTitle( $title, $repo ); $this->assertSame( false, $file->exists() ); |