X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiComparePagesTest.php;h=3709c2195a200ce035b2f545b4336d39eebf002f;hb=5cc5250c26bb8cb5637e35d57b4b40d6f86f4cc1;hp=30e1d0c618388e8335b3b09513912867a3310998;hpb=f7b7d9400d993abb545db503d30e20206689a1e1;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiComparePagesTest.php b/tests/phpunit/includes/api/ApiComparePagesTest.php index 30e1d0c618..3709c2195a 100644 --- a/tests/phpunit/includes/api/ApiComparePagesTest.php +++ b/tests/phpunit/includes/api/ApiComparePagesTest.php @@ -936,6 +936,16 @@ class ApiComparePagesTest extends ApiTestCase { [], 'sectionreplacefailed', ], + 'Error, deleting the main slot' => [ + [ + 'fromtitle' => 'ApiComparePagesTest A', + 'totitle' => 'ApiComparePagesTest A', + 'toslots' => 'main', + ], + [], + 'compare-maintextrequired', + ], + // @todo Add a test for using 'tosection-foo' without 'totext-foo' (can't do it with main) ]; // phpcs:enable }