diff options
Diffstat (limited to 'tests/phpunit/includes/api/ApiEditPageTest.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiEditPageTest.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/phpunit/includes/api/ApiEditPageTest.php b/tests/phpunit/includes/api/ApiEditPageTest.php index 6a8125ee4085..3f0854d65f91 100644 --- a/tests/phpunit/includes/api/ApiEditPageTest.php +++ b/tests/phpunit/includes/api/ApiEditPageTest.php @@ -1536,14 +1536,12 @@ class ApiEditPageTest extends ApiTestCase { 'tags' => 'custom tag', ] )[0]['edit']['newrevid']; - $this->assertSame( 'custom tag', $this->getDb()->selectField( - [ 'change_tag', 'change_tag_def' ], - 'ctd_name', - [ 'ct_rev_id' => $revId ], - __METHOD__, - [ 'change_tag_def' => [ 'JOIN', 'ctd_id = ct_tag_id' ] ] - ) - ); + $this->assertSame( 'custom tag', $this->getDb()->newSelectQueryBuilder() + ->select( 'ctd_name' ) + ->from( 'change_tag' ) + ->join( 'change_tag_def', null, 'ctd_id = ct_tag_id' ) + ->where( [ 'ct_rev_id' => $revId ] ) + ->caller( __METHOD__ )->fetchField() ); } public function testEditWithoutTagPermission() { |