Problem/Motivation
Tests fail in PHP 8.
CaptchaPointListBuilderTest::testBuildRow():
Prophecy\Exception\Call\UnexpectedCallException : Unexpected method call on Double\Drupal\captcha\Entity\CaptchaPoint\P5:
- hasLinkTemplate(
"edit-form"
)
expected calls were:
- access(
*
)
- id(
)
- getCaptchaType(
)
CaptchaCronTest::testCron():
TypeError : PDOStatement::fetchAll(): Argument #2 must be of type int, string given
Steps to reproduce
Run unit tests in PHP 8
Proposed resolution
Mock the hasLinkTemplate() method
Remaining tasks
- Review patch
- Enable weekly PHP 8 testing
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Comments
Comment #2
mstrelan commentedComment #3
mstrelan commentedComment #4
mstrelan commentedComment #5
acbramley commentedNice one, green run on PHP8.0 proves itself here :)
Comment #7
japerry