Skip to content

Commit 76d4d86

Browse files
committed
Fix tests
1 parent a8ffa03 commit 76d4d86

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/event/listener_test.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ public function test_setup_cache_dir($cache)
530530
*
531531
* @return array
532532
*/
533-
public function append_agreement_data()
533+
public static function append_agreement_data()
534534
{
535535
return [
536536
[false, 'PRIVACY', 0], // No agreement
@@ -553,8 +553,10 @@ public function test_append_agreement($s_agreement, $agreement_title, $expected_
553553

554554
$this->template->expects(self::atMost(2))
555555
->method('retrieve_var')
556-
->withConsecutive(['S_AGREEMENT'], ['AGREEMENT_TITLE'])
557-
->willReturnOnConsecutiveCalls($s_agreement, $this->language->lang($agreement_title));
556+
->willReturnMap([
557+
['S_AGREEMENT', $s_agreement],
558+
['AGREEMENT_TITLE', $this->language->lang($agreement_title)]
559+
]);
558560

559561
if ($expected_append_calls > 0)
560562
{

0 commit comments

Comments
 (0)