username() public method

Returns current user username
public username ( ) : string
return string
 /** @test */
 public function it_should_return_username_from_profile()
 {
     $profile = ['username' => 'test'];
     $this->apiShouldReturnData($profile)->assertEquals($profile['username'], $this->provider->username());
 }