info() public method

If username param is not specified, will return info for logged user.
public info ( string $username ) : array
$username string
return array
Esempio n. 1
0
 /** @test */
 public function getUserInfo()
 {
     $response = $this->createApiResponse(['data' => ['name' => 'test']]);
     $this->mock->shouldReceive('exec')->andReturn($response);
     $data = $this->provider->info('username');
     $this->assertEquals($response['resource_response']['data'], $data);
 }
 /** @test */
 public function it_should_return_user_info()
 {
     $userInfo = ['name' => 'test'];
     $this->apiShouldReturnData($userInfo);
     $data = $this->provider->info('username');
     $this->assertEquals($userInfo, $data);
 }
Esempio n. 3
0
 public function testInfo()
 {
     $response = $this->createApiResponse(['data' => ['name' => 'test']]);
     $this->mock->method('exec')->willReturn($response);
     $data = $this->provider->info('username');
     $this->assertEquals($response['resource_response']['data'], $data);
 }