aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/filerepo/file
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/filerepo/file')
-rw-r--r--tests/phpunit/includes/filerepo/file/LocalFileTest.php5
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() );