You are here

protected function LinkedinAuthManagerTest::setUp in Social Auth LinkedIn 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/LinkedinAuthManagerTest.php, line 44

Class

LinkedinAuthManagerTest
@coversDefaultClass Drupal\social_auth_linkedin\LinkedinAuthManager @group social_auth_linkedin

Namespace

Drupal\Tests\social_auth_linkedin\Unit

Code

protected function setUp() {
  parent::setUp();
  $this->request = $this
    ->getMock('\\Symfony\\Component\\HttpFoundation\\RequestStack');
  $this->linkedinManager = new LinkedinAuthManager($this->request);
  $this->client = $this
    ->getMockBuilder('\\LinkedIn\\LinkedIn')
    ->disableOriginalConstructor()
    ->getMock();
}