Skip to content

Commit

Permalink
add coverage for AuthedUser
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Mar 19, 2015
1 parent 4381349 commit 7d41136
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Cubex/Auth/AuthedUserTest.php
Expand Up @@ -17,6 +17,15 @@ public function testBasics()

$user->setProperty('nada', 'found');
$this->assertEquals('found', $user->getProperty('nada', 'missing'));

$this->assertEquals(
[
'userId' => 1,
'username' => 'brooke',
'data' => ['surname' => 'bryan', 'nada' => 'found']
],
$user->getProperties()
);
}

public function testSerialize()
Expand Down

0 comments on commit 7d41136

Please sign in to comment.