wiki.techinc.nl/tests/phpunit/includes/content
Bartosz Dziewoński add6c49e01 Fix edit API adding empty section title when creating new pages
WikitextContent methods replaceSection() (used when adding a section
to an existing page) and addSectionHeader() (used when creating a new
page) behaved inconsistently - the former would omit the heading
syntax when the section title was empty, but the latter would not.
They both omit it now.

Some callers of addSectionHeader() handled this case, but others did
not, which caused T311489. (I am removing the checks now, since the
change makes them redundant.)

Bug: T311489
Change-Id: Icd59bcf2b75bf50865f19fac92bddabe0c183dcc
2022-07-05 21:06:06 +00:00
..
Transform
ContentHandlerTest.php tests: Use WikiPageFactory to create WikiPage object 2022-06-26 23:21:02 +02:00
ContentModelChangeTest.php
CssContentHandlerTest.php
CssContentTest.php
FallbackContentHandlerTest.php
FallbackContentTest.php
JavaScriptContentHandlerTest.php
JavaScriptContentTest.php
JsonContentHandlerIntegrationTest.php
MessageContentTest.php
RegistrationContentHandlerFactoryToMediaWikiServicesTest.php
TextContentHandlerIntegrationTest.php
TextContentTest.php
WikitextContentHandlerTest.php tests: Use WikiPageFactory to create WikiPage object 2022-06-26 23:21:02 +02:00
WikitextContentTest.php Fix edit API adding empty section title when creating new pages 2022-07-05 21:06:06 +00:00
WikitextStructureTest.php