public function testUser()
{
$this->AuthUser->Auth->expects($this->any())->method('user')->with(null)->will($this->returnValue(['id' => '1', 'username' => 'foo']));
$this->assertSame(['id' => '1', 'username' => 'foo'], $this->AuthUser->user());
$this->assertSame('foo', $this->AuthUser->user('username'));
$this->assertNull($this->AuthUser->user('foofoo'));
}