You are here

protected function GoogleAuthManagerTest::setUp in Social Auth Google 8

Overrides UnitTestCase::setUp

File

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

Class

GoogleAuthManagerTest
@coversDefaultClass Drupal\social_auth_google\GoogleAuthManager @group social_auth_google

Namespace

Drupal\Tests\social_auth_google\Unit

Code

protected function setUp() {
  parent::setUp();
  $this->session = $this
    ->getMock('\\Symfony\\Component\\HttpFoundation\\Session\\Session');
  $this->request = $this
    ->getMock('\\Symfony\\Component\\HttpFoundation\\RequestStack');
  $this->googleManager = new GoogleAuthManager($this->session, $this->request);
  $this->client = $this
    ->getMockBuilder('\\Google_Client')
    ->disableOriginalConstructor()
    ->getMock();
}