Skip to content

Commit 6ef99fa

Browse files
committed
Fix tests
1 parent 56981e6 commit 6ef99fa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/event/listener_test.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function test_validate_googleanalytics_id($cfg_array, $expected_error)
261261
*
262262
* @return array
263263
*/
264-
public function append_agreement_data()
264+
public static function append_agreement_data()
265265
{
266266
return [
267267
[false, 'PRIVACY', 0], // No agreement
@@ -285,8 +285,10 @@ public function test_append_agreement($s_agreement, $agreement_title, $expected_
285285

286286
$this->template->expects(self::atMost(2))
287287
->method('retrieve_var')
288-
->withConsecutive(['S_AGREEMENT'], ['AGREEMENT_TITLE'])
289-
->willReturnOnConsecutiveCalls($s_agreement, $this->language->lang($agreement_title));
288+
->willReturnMap([
289+
['S_AGREEMENT', $s_agreement],
290+
['AGREEMENT_TITLE', $this->language->lang($agreement_title)]
291+
]);
290292

291293
if ($expected_append_calls > 0)
292294
{

0 commit comments

Comments
 (0)