X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FCommentStoreTest.php;h=9369f3062929c35f0babb6a68a4563973d4087bf;hb=801c6810a741cffed1174267958bd3426fd1d191;hp=b0f7678e18834354c82ad32e9c4d38d432a026dc;hpb=c66360d167aeacec8ec296ae8ff29fd5d3f1a557;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/CommentStoreTest.php b/tests/phpunit/includes/CommentStoreTest.php index b0f7678e18..9369f30629 100644 --- a/tests/phpunit/includes/CommentStoreTest.php +++ b/tests/phpunit/includes/CommentStoreTest.php @@ -618,7 +618,7 @@ class CommentStoreTest extends MediaWikiLangTestCase { public function testInsertTruncation() { $comment = str_repeat( '💣', 16400 ); $truncated1 = str_repeat( '💣', 63 ) . '...'; - $truncated2 = str_repeat( '💣', 16383 ) . '...'; + $truncated2 = str_repeat( '💣', CommentStore::COMMENT_CHARACTER_LIMIT - 3 ) . '...'; $store = $this->makeStore( MIGRATION_WRITE_BOTH, 'ipb_reason' ); $fields = $store->insert( $this->db, $comment );