Unit Testing


get user by ID
User Object
(
    [table:protected] => users
    [fields:protected] => Array
        (
            [email] => josh@orum.com
            [name] => 
            [pwd_token] => 2d47676dec3391cdd789114bb4338604
        )

    [id:protected] => 1
)

try to get user by bad ID
User Object
(
    [table:protected] => users
    [fields:protected] => Array
        (
            [email] => 
            [name] => 
            [pwd_token] => 
        )

    [id:protected] => 
)

create user with array
User Object
(
    [table:protected] => users
    [fields:protected] => Array
        (
            [email] => josh@louddog.com
            [name] => Josh Orum
            [pwd_token] => 
        )

    [id:protected] => 
)

get user by email