X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flogging%2FDeleteLogFormatterTest.php;h=2337899976875655158a4cd1a7f437f8ffdcf062;hb=7f02e0afb94e63449c8164314ff9979671009584;hp=3fb4eabff1f28fe779db0692279aff5690c0d129;hpb=c340c41b37b5079ba90489f6b212bb8e4642031a;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/logging/DeleteLogFormatterTest.php b/tests/phpunit/includes/logging/DeleteLogFormatterTest.php index 3fb4eabff1..2337899976 100644 --- a/tests/phpunit/includes/logging/DeleteLogFormatterTest.php +++ b/tests/phpunit/includes/logging/DeleteLogFormatterTest.php @@ -59,6 +59,32 @@ class DeleteLogFormatterTest extends LogFormatterTestCase { public static function provideRestoreLogDatabaseRows() { return [ // Current format + [ + [ + 'type' => 'delete', + 'action' => 'restore', + 'comment' => 'delete comment', + 'namespace' => NS_MAIN, + 'title' => 'Page', + 'params' => [ + ':assoc:count' => [ + 'revisions' => 2, + 'files' => 1, + ], + ], + ], + [ + 'text' => 'User restored page Page (2 revisions and 1 file)', + 'api' => [ + 'count' => [ + 'revisions' => 2, + 'files' => 1, + ], + ], + ], + ], + + // Legacy format without counts [ [ 'type' => 'delete',