Skip to content

refactor: Ensure findById returns null instead of an array when ID is null #2291

refactor: Ensure findById returns null instead of an array when ID is null

refactor: Ensure findById returns null instead of an array when ID is null #2291

Triggered via pull request March 31, 2025 04:02
Status Success
Total duration 13m 37s
Artifacts

phpunit.yml

on: pull_request
Matrix: phpunit / main
phpunit  /  Coveralls Finished
3s
phpunit / Coveralls Finished
Fit to window
Zoom out
Zoom in

Annotations

47 warnings
phpunit / PHP 8.1 - MySQLi: /tests/Controllers/RegisterTest.php#L184
Took 0.5180s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisterRedirectsToActionIfDefined
phpunit / PHP 8.1 - MySQLi: /tests/Unit/UserIdentityModelTest.php#L86
Took 0.6218s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.3 - MySQLi: /tests/Unit/UserIdentityModelTest.php#L86
Took 0.6487s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.4 - SQLite3: /tests/Unit/UserIdentityModelTest.php#L86
Took 2.3574s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.2 - SQLite3: /tests/Controllers/RegisterTest.php#L232
Took 0.5098s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredButNotActivatedAndRegisterAgain
phpunit / PHP 8.2 - SQLite3: /tests/Controllers/RegisterTest.php#L208
Took 0.5103s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredButNotActivatedAndLogin
phpunit / PHP 8.2 - SQLite3: /tests/Unit/PasswordsTest.php#L37
Took 0.5150s from 0.5000s limit to run Tests\\Unit\\PasswordsTest::testHash
phpunit / PHP 8.2 - SQLite3: /tests/Controllers/RegisterTest.php#L258
Took 0.5263s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredAndSessionExpiredAndLogin
phpunit / PHP 8.2 - SQLite3: /tests/Controllers/RegisterTest.php#L92
Took 0.5299s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisterActionSuccessWithNoEmailLogin
phpunit / PHP 8.2 - SQLite3: /tests/Controllers/RegisterTest.php#L54
Took 0.5461s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisterActionSuccess
phpunit / PHP 8.2 - SQLite3: /tests/Unit/UserIdentityModelTest.php#L86
Took 0.6526s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.2 - MySQLi: /tests/Controllers/RegisterTest.php#L184
Took 0.5051s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisterRedirectsToActionIfDefined
phpunit / PHP 8.2 - MySQLi: /tests/Controllers/RegisterTest.php#L258
Took 0.5101s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredAndSessionExpiredAndLogin
phpunit / PHP 8.2 - MySQLi: /tests/Controllers/RegisterTest.php#L54
Took 0.5104s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisterActionSuccess
phpunit / PHP 8.2 - MySQLi: /tests/Controllers/RegisterTest.php#L232
Took 0.5112s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredButNotActivatedAndRegisterAgain
phpunit / PHP 8.2 - MySQLi: /tests/Controllers/RegisterTest.php#L208
Took 0.5207s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredButNotActivatedAndLogin
phpunit / PHP 8.2 - MySQLi: /tests/Controllers/RegisterTest.php#L92
Took 0.5390s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisterActionSuccessWithNoEmailLogin
phpunit / PHP 8.2 - MySQLi: /tests/Unit/UserIdentityModelTest.php#L86
Took 0.6501s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.1 - SQLite3: /tests/Controllers/RegisterTest.php#L184
Took 0.5053s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisterRedirectsToActionIfDefined
phpunit / PHP 8.1 - SQLite3: /tests/Unit/UserIdentityModelTest.php#L86
Took 0.6593s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.1 - Postgre: /tests/Controllers/RegisterTest.php#L258
Took 0.5091s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredAndSessionExpiredAndLogin
phpunit / PHP 8.1 - Postgre: /tests/Authentication/Filters/JWTFilterTest.php#L78
Took 0.6087s from 0.5000s limit to run Tests\\Authentication\\Filters\\JWTFilterTest::testFilterSuccess
phpunit / PHP 8.1 - Postgre: /tests/Unit/UserIdentityModelTest.php#L86
Took 0.6420s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.1 - SQLSRV: /tests/Controllers/RegisterTest.php#L208
Took 0.5178s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredButNotActivatedAndLogin
phpunit / PHP 8.1 - SQLSRV: /tests/Controllers/RegisterTest.php#L258
Took 0.5214s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredAndSessionExpiredAndLogin
phpunit / PHP 8.1 - SQLSRV: /tests/Controllers/RegisterTest.php#L92
Took 0.5294s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisterActionSuccessWithNoEmailLogin
phpunit / PHP 8.1 - SQLSRV: /tests/Unit/UserIdentityModelTest.php#L86
Took 0.6999s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.3 - SQLite3: /tests/Controllers/RegisterTest.php#L258
Took 0.5013s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredAndSessionExpiredAndLogin
phpunit / PHP 8.3 - SQLite3: /tests/Controllers/RegisterTest.php#L232
Took 0.5127s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredButNotActivatedAndRegisterAgain
phpunit / PHP 8.3 - SQLite3: /tests/Controllers/RegisterTest.php#L314
Took 0.5846s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisterActionWithBadEmailValue
phpunit / PHP 8.3 - SQLite3: /tests/Unit/UserIdentityModelTest.php#L86
Took 1.2362s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.1 - OCI8: /tests/Authentication/Authenticators/SessionAuthenticatorTest.php#L121
Took 0.6812s from 0.5000s limit to run Tests\\Authentication\\Authenticators\\SessionAuthenticatorTest::testLoggedInAsDeletedUserWithRememberCookie
phpunit / PHP 8.1 - OCI8: /tests/Authentication/AuthTest.php#L24
Took 0.6921s from 0.5000s limit to run Tests\\Authentication\\AuthTest::testAuthenticateFail
phpunit / PHP 8.1 - OCI8: /tests/Authentication/Authenticators/HmacAuthenticatorTest.php#L90
Took 0.7258s from 0.5000s limit to run Tests\\Authentication\\Authenticators\\HmacAuthenticatorTest::testLoginByIdBadId
phpunit / PHP 8.1 - OCI8: /tests/Authentication/Filters/ChainFilterTest.php#L57
Took 0.7300s from 0.5000s limit to run Tests\\Authentication\\Filters\\ChainFilterTest::testFilterSuccessTokens
phpunit / PHP 8.1 - OCI8: /tests/Authentication/MagicLinkTest.php#L129
Took 0.7894s from 0.5000s limit to run Tests\\Authentication\\MagicLinkTest::testMagicLinkVerifySuccess
phpunit / PHP 8.1 - OCI8: /tests/Unit/UserIdentityModelTest.php#L86
Took 0.8526s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.1 - OCI8: /tests/Authorization/AuthorizableTest.php#L319
Took 0.8771s from 0.5000s limit to run Tests\\Authorization\\AuthorizableTest::testCanWorksWithMultiplePermissions
phpunit / PHP 8.1 - OCI8: /tests/Controllers/RegisterTest.php#L258
Took 1.1690s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredAndSessionExpiredAndLogin
phpunit / PHP 8.1 - OCI8: /tests/Collectors/AuthTest.php#L52
Took 1.1866s from 0.5000s limit to run Tests\\Collectors\\AuthTest::testDisplayLoggedIn
phpunit / PHP 8.1 - OCI8: /tests/Authentication/Filters/ChainFilterTest.php#L32
Took 1.2435s from 0.5000s limit to run Tests\\Authentication\\Filters\\ChainFilterTest::testFilterNotAuthorized
phpunit / PHP 8.1 - MySQLi: /tests/Controllers/RegisterTest.php#L184
Took 0.5261s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisterRedirectsToActionIfDefined
phpunit / PHP 8.1 - MySQLi: /tests/Authentication/HasHmacTokensTest.php#L53
Took 0.6356s from 0.5000s limit to run Tests\\Authentication\\HasHmacTokensTest::testHmacTokens
phpunit / PHP 8.1 - MySQLi: /tests/Unit/UserIdentityModelTest.php#L86
Took 0.6736s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset
phpunit / PHP 8.4 - MySQLi: /tests/Controllers/RegisterTest.php#L258
Took 0.5296s from 0.5000s limit to run Tests\\Controllers\\RegisterTest::testRegisteredAndSessionExpiredAndLogin
phpunit / PHP 8.4 - MySQLi: /tests/Commands/UserTest.php#L103
Took 0.7607s from 0.5000s limit to run Tests\\Commands\\UserTest::testCreateWithGroupBeta
phpunit / PHP 8.4 - MySQLi: /tests/Unit/UserIdentityModelTest.php#L86
Took 2.3743s from 0.5000s limit to run Tests\\Unit\\UserIdentityModelTest::testForceMultiplePasswordReset