You are here

protected function SocialAuthTestBase::setUp in Social Auth 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/SocialAuthTestBase.php \Drupal\Tests\social_auth\Functional\SocialAuthTestBase::setUp()

Throws

\Drupal\Core\Entity\EntityStorageException

Overrides SocialApiTestBase::setUp

File

tests/src/Functional/SocialAuthTestBase.php, line 46

Class

SocialAuthTestBase
Defines a base class for testing Social Auth implementers.

Namespace

Drupal\Tests\social_auth\Functional

Code

protected function setUp() : void {
  $this->adminUserPermissions = [
    'administer social api authentication',
  ];
  $this->moduleType = 'social-auth';
  parent::setUp();
  $this->socialAuthLoginBlock = $this
    ->drupalPlaceBlock('social_auth_login', [
    'label' => 'Social Auth Login',
    'id' => 'social_auth_login',
  ]);
  $this->socialAuthLoginBlock
    ->getPlugin()
    ->setConfigurationValue('label_display', 1);
  $this->socialAuthLoginBlock
    ->save();
}