X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiEditPageTest.php;h=2161093311ccc95621af837bc123977ea31ddbd2;hb=f2d4db9d03a984d998db9044e63e548597511eb6;hp=852812bef5272f9ab769b7e82ea2a71745a80361;hpb=5cd37c7a64e9abb4fdadb9c3ae10c672bdc40c11;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiEditPageTest.php b/tests/phpunit/includes/api/ApiEditPageTest.php index 852812bef5..2161093311 100644 --- a/tests/phpunit/includes/api/ApiEditPageTest.php +++ b/tests/phpunit/includes/api/ApiEditPageTest.php @@ -33,6 +33,10 @@ class ApiEditPageTest extends ApiTestCase { 'testing-nontext' => 'DummyNonTextContentHandler', 'testing-serialize-error' => 'DummySerializeErrorContentHandler', ] ); + $this->tablesUsed = array_merge( + $this->tablesUsed, + [ 'change_tag', 'change_tag_def', 'logging' ] + ); } public function testEdit() { @@ -1341,7 +1345,13 @@ class ApiEditPageTest extends ApiTestCase { $dbw = wfGetDB( DB_MASTER ); $this->assertSame( 'custom tag', $dbw->selectField( - 'change_tag', 'ct_tag', [ 'ct_rev_id' => $revId ], __METHOD__ ) ); + [ 'change_tag', 'change_tag_def' ], + 'ctd_name', + [ 'ct_rev_id' => $revId ], + __METHOD__, + [ 'change_tag_def' => [ 'INNER JOIN', 'ctd_id = ct_tag_id' ] ] + ) + ); } public function testEditWithoutTagPermission() {