Skip to content

Commit

Permalink
Removed test for getUserId
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Jun 11, 2015
1 parent e1ae980 commit 195e93c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/LinkedInTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,6 @@ public function testGetUser()
$this->assertEquals($user, $linkedIn->getUser());
}

public function testGetUserId()
{
$linkedIn = m::mock('Happyr\LinkedIn\LinkedIn[getUser]', array(self::APP_ID, self::APP_SECRET))
->shouldReceive('getUser')->andReturn(array('id' => 'foobar'), array(), null)
->getMock();

$this->assertEquals('foobar', $linkedIn->getUserId());
$this->assertEquals(null, $linkedIn->getUserId());
$this->assertEquals(null, $linkedIn->getUserId());
}

public function testFetchNewAccessToken()
{
$storage = m::mock('Happyr\LinkedIn\Storage\DataStorageInterface')
Expand Down

0 comments on commit 195e93c

Please sign in to comment.