diff options
Diffstat (limited to 'tests/phpunit/includes')
6 files changed, 7 insertions, 7 deletions
diff --git a/tests/phpunit/includes/api/ApiEditPageTest.php b/tests/phpunit/includes/api/ApiEditPageTest.php index 72dad35437ea..4f4fa91baa0c 100644 --- a/tests/phpunit/includes/api/ApiEditPageTest.php +++ b/tests/phpunit/includes/api/ApiEditPageTest.php @@ -858,7 +858,7 @@ class ApiEditPageTest extends ApiTestCase { // Make the middle revision disappear $dbw = $this->getDb(); $dbw->newDeleteQueryBuilder() - ->delete( 'revision' ) + ->deleteFrom( 'revision' ) ->where( [ 'rev_id' => $revId2 ] ) ->caller( __METHOD__ )->execute(); $dbw->newUpdateQueryBuilder() diff --git a/tests/phpunit/includes/changetags/ChangeTagsTest.php b/tests/phpunit/includes/changetags/ChangeTagsTest.php index cd367f502deb..f2c1593825ec 100644 --- a/tests/phpunit/includes/changetags/ChangeTagsTest.php +++ b/tests/phpunit/includes/changetags/ChangeTagsTest.php @@ -32,11 +32,11 @@ class ChangeTagsTest extends MediaWikiIntegrationTestCase { private function emptyChangeTagsTables() { $dbw = wfGetDB( DB_PRIMARY ); $dbw->newDeleteQueryBuilder() - ->delete( 'change_tag' ) + ->deleteFrom( 'change_tag' ) ->where( ISQLPlatform::ALL_ROWS ) ->execute(); $dbw->newDeleteQueryBuilder() - ->delete( 'change_tag_def' ) + ->deleteFrom( 'change_tag_def' ) ->where( ISQLPlatform::ALL_ROWS ) ->execute(); } diff --git a/tests/phpunit/includes/filerepo/file/LocalFileTest.php b/tests/phpunit/includes/filerepo/file/LocalFileTest.php index 2f1d68cefa43..4d043a9dfcac 100644 --- a/tests/phpunit/includes/filerepo/file/LocalFileTest.php +++ b/tests/phpunit/includes/filerepo/file/LocalFileTest.php @@ -654,7 +654,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase { // Make sure we were actually hitting the WAN cache $dbw->newDeleteQueryBuilder() - ->delete( 'image' ) + ->deleteFrom( 'image' ) ->where( [ 'img_name' => 'Random-11m.png' ] ) ->caller( __METHOD__ )->execute(); $file->invalidateCache(); diff --git a/tests/phpunit/includes/interwiki/InterwikiTest.php b/tests/phpunit/includes/interwiki/InterwikiTest.php index 916b3eafd791..8c2e6733abda 100644 --- a/tests/phpunit/includes/interwiki/InterwikiTest.php +++ b/tests/phpunit/includes/interwiki/InterwikiTest.php @@ -45,7 +45,7 @@ class InterwikiTest extends MediaWikiIntegrationTestCase { private function populateDB( $iwrows ) { $dbw = wfGetDB( DB_PRIMARY ); $dbw->newDeleteQueryBuilder() - ->delete( 'interwiki' ) + ->deleteFrom( 'interwiki' ) ->where( ISQLPlatform::ALL_ROWS ) ->caller( __METHOD__ )->execute(); $dbw->insert( 'interwiki', array_values( $iwrows ), __METHOD__ ); diff --git a/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php b/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php index 246721c8b8a9..7ac42015ee42 100644 --- a/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php +++ b/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php @@ -82,7 +82,7 @@ class BotPasswordSessionProviderTest extends MediaWikiIntegrationTestCase { $dbw = wfGetDB( DB_PRIMARY ); $dbw->newDeleteQueryBuilder() - ->delete( 'bot_passwords' ) + ->deleteFrom( 'bot_passwords' ) ->where( [ 'bp_user' => $userId, 'bp_app_id' => 'BotPasswordSessionProvider' ] ) ->caller( __METHOD__ )->execute(); $dbw->insert( diff --git a/tests/phpunit/includes/user/BotPasswordTest.php b/tests/phpunit/includes/user/BotPasswordTest.php index d2a8af4fb6bd..bbe64b01f2a6 100644 --- a/tests/phpunit/includes/user/BotPasswordTest.php +++ b/tests/phpunit/includes/user/BotPasswordTest.php @@ -65,7 +65,7 @@ class BotPasswordTest extends MediaWikiIntegrationTestCase { $dbw = wfGetDB( DB_PRIMARY ); $dbw->newDeleteQueryBuilder() - ->delete( 'bot_passwords' ) + ->deleteFrom( 'bot_passwords' ) ->where( [ 'bp_user' => [ 42, 43 ], 'bp_app_id' => 'BotPassword' ] ) ->caller( __METHOD__ )->execute(); $dbw->insert( |