- Merge request !161fix(tests): Mock faults cause test failure in PHPUnit ^9.6 β (Merged) created by cmlara
In #3391784 a new set of tests were added.
In the Code Under Test there is an undefined mock which will return NULL(should return FALSE). The code under test later attempts to access a property on the NULL value.
This generates a PHP warning that in PHPUnit 9.6 causes a test failure (while in ^10.5 does not fail).
Run TfaLoginFormHelperTest against core ^10.5, Observe failure of https://git.drupalcode.org/project/tfa/-/blob/80e2aa077eb08e84e00c540991...
Add a mock return for memory cache get of 'tfa_complete'.
Evaluate if there is any untested code execution flow.
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.