SocialAuthLinkedInSettingsFormTest.php in Social Auth LinkedIn 8.2
File
tests/src/Functional/SocialAuthLinkedInSettingsFormTest.php
View source
<?php
namespace Drupal\Tests\social_auth_linkedin\Functional;
use Drupal\Tests\social_auth\Functional\SocialAuthTestBase;
class SocialAuthLinkedInSettingsFormTest extends SocialAuthTestBase {
public static $modules = [
'social_auth_linkedin',
];
protected function setUp() {
$this->module = 'social_auth_linkedin';
$this->provider = 'linkedin';
$this->moduleType = 'social-auth';
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();
}
}