public function testUser()
{
/*
|------------------------------------------------------------
| Set
|------------------------------------------------------------
*/
$app = new stdClass();
$app->auth = m::mock('Auth');
$teamwork = new Teamwork($app);
$user = m::mock('_mockedUser');
/*
|------------------------------------------------------------
| Expectation
|------------------------------------------------------------
*/
$app->auth->shouldReceive('user')->andReturn($user)->once();
/*
|------------------------------------------------------------
| Assertion
|------------------------------------------------------------
*/
$this->assertSame($user, $teamwork->user());
}