You are here

SocialAuthGoogleLoginBlockTest.php in Social Auth Google 3.x

Same filename and directory in other branches
  1. 8.2 tests/src/Functional/SocialAuthGoogleLoginBlockTest.php

File

tests/src/Functional/SocialAuthGoogleLoginBlockTest.php
View source
<?php

namespace Drupal\Tests\social_auth_google\Functional;

use Drupal\Tests\social_auth\Functional\SocialAuthTestBase;

/**
 * Test that path to authentication route exists in Social Auth Login block.
 *
 * @group social_auth
 *
 * @ingroup social_auth_google
 */
class SocialAuthGoogleLoginBlockTest extends SocialAuthTestBase {

  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = [
    'block',
    'social_auth_google',
  ];

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this->provider = 'google';
  }

  /**
   * Test that the path is included in the login block.
   *
   * @throws \Behat\Mink\Exception\ResponseTextException
   */
  public function testLinkExistsInBlock() {
    $this
      ->checkLinkToProviderExists();
  }

}

Classes

Namesort descending Description
SocialAuthGoogleLoginBlockTest Test that path to authentication route exists in Social Auth Login block.