Skip to content

Issue #3450488: PHPUnit: Fixed Functional Tests 'HoneypotFormCacheTest'.

https://www.drupal.org/project/honeypot/issues/3450488

PHPUnit: Fixed Functional Tests HoneypotFormCacheTest failing with errors:

1) Drupal\Tests\honeypot\Functional\HoneypotFormCacheTest::testCacheContactForm
TypeError: Behat\Mink\WebAssert::responseHeaderEquals(): Argument #2 ($value) must be of type string, null given, called in /builds/issue/honeypot-2342473/tests/src/Functional/HoneypotFormCacheTest.php on line 97
/builds/issue/honeypot-2342473/vendor/behat/mink/src/WebAssert.php:175
/builds/issue/honeypot-2342473/tests/src/Functional/HoneypotFormCacheTest.php:97
/builds/issue/honeypot-2342473/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
2) Drupal\Tests\honeypot\Functional\HoneypotFormCacheTest::testCacheCommentForm
TypeError: Behat\Mink\WebAssert::responseHeaderEquals(): Argument #2 ($value) must be of type string, null given, called in /builds/issue/honeypot-2342473/tests/src/Functional/HoneypotFormCacheTest.php on line 138
/builds/issue/honeypot-2342473/vendor/behat/mink/src/WebAssert.php:175
/builds/issue/honeypot-2342473/tests/src/Functional/HoneypotFormCacheTest.php:138
/builds/issue/honeypot-2342473/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

Replaced Drupal\Tests\WebAssert::responseHeaderEquals() with Drupal\Tests\WebAssert::responseHeaderDoesNotExist().

The remaining error is due to the rules modules, see DO-3425542

Merge request reports

Loading