SocialAuthGoogleSettingsFormTest.php in Social Auth Google 3.x
File
tests/src/Functional/SocialAuthGoogleSettingsFormTest.php
View source
<?php
namespace Drupal\Tests\social_auth_google\Functional;
use Drupal\Tests\social_auth\Functional\SocialAuthTestBase;
class SocialAuthGoogleSettingsFormTest extends SocialAuthTestBase {
public static $modules = [
'social_auth_google',
];
protected function setUp() {
$this->module = 'social_auth_google';
$this->provider = 'google';
parent::setUp();
}
public function testIsAvailableInIntegrationList() {
$this->fields = [
'client_id',
'client_secret',
];
$this
->checkIsAvailableInIntegrationList();
}
public function testPermissionForSettingsPage() {
$this
->checkPermissionForSettingsPage();
}
public function testSettingsFormSubmission() {
$this->edit = [
'client_id' => $this
->randomString(10),
'client_secret' => $this
->randomString(10),
];
$this
->checkSettingsFormSubmission();
}
}