You are here

SocialAuthFacebookLoginBlockTest.php in Social Auth Facebook 8.2

Same filename and directory in other branches
  1. 3.x tests/src/Functional/SocialAuthFacebookLoginBlockTest.php

File

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

namespace Drupal\Tests\social_auth_facebook\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_facebook
 */
class SocialAuthFacebookLoginBlockTest extends SocialAuthTestBase {

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

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

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

}

Classes

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