Skip to content

administrator test failing #18

Description

@s22-tech

Running the administrator.php test, I get these results:

 $administrator->data -- Array
(
    [id] => 3
    [status] => 0
    [username] => test2
    [firstname] => 
    [lastname] => 
    [email] => test2@example.com
    [password_hash] => $2y$12$LUYnw4YacJADZk7biYh7GudGFykbpIS/FcfgvzCzXxWZGHlgvsHpW
    [apps] => Array
        (
        )

    [widgets] => Array
        (
        )

    [two_factor_auth] => 0
    [known_ips] => 
    [known_fingerprints] => 
    [login_attempts] => 0
    [total_logins] => 0
    [last_ip_address] => 
    [last_hostname] => 
    [last_user_agent] => 
    [valid_from] => 2024-01-01 00:00:00
    [valid_to] => 2024-12-31 23:59:59
    [last_active] => 
    [last_login] => 
    [updated_at] => 2026-06-28 10:07:18
    [created_at] => 2026-06-28 10:07:18
)
 administrator::$data -- Array
(
    [id] => 3
    [status] => 0
    [username] => test2
    [firstname] => 
    [lastname] => 
    [email] => test2@example.com
    [password_hash] => $2y$12$LUYnw4YacJADZk7biYh7GudGFykbpIS/FcfgvzCzXxWZGHlgvsHpW
    [apps] => Array
        (
        )

    [widgets] => Array
        (
        )

    [two_factor_auth] => 0
    [known_ips] => Array
        (
        )

    [known_fingerprints] => Array
        (
        )

    [login_attempts] => 0
    [total_logins] => 0
    [last_ip_address] => 
    [last_hostname] => 
    [last_user_agent] => 
    [valid_from] => 2024-01-01 00:00:00
    [valid_to] => 2024-12-31 23:59:59
    [last_active] => 
    [last_login] => 
    [updated_at] => 2026-06-28 10:07:18
    [created_at] => 2026-06-28 10:07:18
)
[Failed] Error: administrator::$data does not match $administrator->data

It appears that known_fingerprints may be the culprit -- in $administrator->data it looks to be an empty string, in administrator::$data it's an empty array.

I had mentioned before that known_fingerprints was missing from lc_administrators so I added it as a varchar.

Any idea why this test is failing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions