From 7caa8561cf983cf5a37e1e7b249b2f08bb128108 Mon Sep 17 00:00:00 2001 From: mjansen Date: Mon, 28 Oct 2024 12:13:24 +0100 Subject: [PATCH] Forum: Fix unit test deprecations --- .../tests/PostingReplySubjectBuilderTest.php | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/components/ILIAS/Forum/tests/PostingReplySubjectBuilderTest.php b/components/ILIAS/Forum/tests/PostingReplySubjectBuilderTest.php index 68d891f6c950..2bb0652c549c 100644 --- a/components/ILIAS/Forum/tests/PostingReplySubjectBuilderTest.php +++ b/components/ILIAS/Forum/tests/PostingReplySubjectBuilderTest.php @@ -23,64 +23,64 @@ class PostingReplySubjectBuilderTest extends TestCase { /** - * @return Generator + * @return Generator */ public static function postingSubjectProvider(): Generator { yield 'Subject without reply prefix' => [ 'subject' => 'This is a subject', - 'prefix' => 'Re:', - 'repetition_prefix' => 'Re (%s):', - 'expected' => 'Re: This is a subject' + 'reply_prefix' => 'Re:', + 'optimized_repeated_reply_prefix' => 'Re (%s):', + 'expected_result' => 'Re: This is a subject' ]; yield 'Subject without reply prefix and prefix without expected end character' => [ 'subject' => 'This is a subject', - 'prefix' => 'Re', - 'repetition_prefix' => 'Re (%s):', - 'expected' => 'Re: This is a subject' + 'reply_prefix' => 'Re', + 'optimized_repeated_reply_prefix' => 'Re (%s):', + 'expected_result' => 'Re: This is a subject' ]; yield 'Subject with repeated reply prefix' => [ 'subject' => 'Re: Re: Re: This is a subject', - 'prefix' => 'Re:', - 'repetition_prefix' => 'Re (%s):', - 'expected' => 'Re (4): This is a subject' + 'reply_prefix' => 'Re:', + 'optimized_repeated_reply_prefix' => 'Re (%s):', + 'expected_result' => 'Re (4): This is a subject' ]; yield 'Subject with optimized repeated reply prefix' => [ 'subject' => 'Re (3): This is a subject', - 'prefix' => 'Re:', - 'repetition_prefix' => 'Re (%s):', - 'expected' => 'Re (4): This is a subject' + 'reply_prefix' => 'Re:', + 'optimized_repeated_reply_prefix' => 'Re (%s):', + 'expected_result' => 'Re (4): This is a subject' ]; yield 'Subject with optimized repeated reply prefix (without spaces)' => [ 'subject' => 'Re(3): This is a subject', - 'prefix' => 'Re:', - 'repetition_prefix' => 'Re (%s):', - 'expected' => 'Re(4): This is a subject' + 'reply_prefix' => 'Re:', + 'optimized_repeated_reply_prefix' => 'Re (%s):', + 'expected_result' => 'Re(4): This is a subject' ]; yield 'Subject with repeated reply prefix and repetition-prefix without expected end character' => [ 'subject' => 'Re: Re: Re: This is a subject', - 'prefix' => 'Re:', - 'repetition_prefix' => 'Re (%s)', - 'expected' => 'Re (4): This is a subject' + 'reply_prefix' => 'Re:', + 'optimized_repeated_reply_prefix' => 'Re (%s)', + 'expected_result' => 'Re (4): This is a subject' ]; yield 'Subject with optimized repeated reply prefix and repetition-prefix without expected end character' => [ 'subject' => 'Re (3): This is a subject', - 'prefix' => 'Re:', - 'repetition_prefix' => 'Re (%s)', - 'expected' => 'Re (4): This is a subject' + 'reply_prefix' => 'Re:', + 'optimized_repeated_reply_prefix' => 'Re (%s)', + 'expected_result' => 'Re (4): This is a subject' ]; yield 'Subject with optimized repeated reply prefix (without spaces) and repetition-prefix without expected end character' => [ 'subject' => 'Re(3): This is a subject', - 'prefix' => 'Re:', - 'repetition_prefix' => 'Re (%s)', - 'expected' => 'Re(4): This is a subject' + 'reply_prefix' => 'Re:', + 'optimized_repeated_reply_prefix' => 'Re (%s)', + 'expected_result' => 'Re(4): This is a subject' ]; }