Commit d8b93fc5 authored by Michael Strelan's avatar Michael Strelan Committed by Jakob P
Browse files

Issue #3220477 by mstrelan: [PHP8] Fix test failures in PHP 8

parent 4461d9f7
Loading
Loading
Loading
Loading
+1 −1
Changes for tests/src/Functional/CaptchaCronTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ class CaptchaCronTest extends BrowserTestBase {
      ->fields('captcha_sessions', ['csid'])
      ->condition('csid', array_values($this->captchaSessions), 'IN')
      ->execute()
      ->fetchCol('csid');
      ->fetchCol();

    // Test if CAPTCHA cron appropriately removes sessions older than a day.
    $this->assertNotContains($this->captchaSessions['remove_sid'], $sids, 'CAPTCHA cron removes captcha session data older than 1 day.');
+2
Changes for tests/src/Unit/Controller/CaptchaPointListBuilderTest.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -55,6 +55,8 @@ class CaptchaPointListBuilderTest extends UnitTestCase {
    $mockEntity->access(Argument::any())->willReturn(FALSE);
    $mockEntity->id()->willReturn('target_form_id');
    $mockEntity->getCaptchaType()->willReturn('captcha_type');
    $mockEntity->hasLinkTemplate('edit-form')->willReturn(FALSE);
    $mockEntity->hasLinkTemplate('delete-form')->willReturn(FALSE);

    $row = $this->listBuilder->buildRow($mockEntity->reveal());