SocialAuthFacebookSettingsFormTest.php in Social Auth Facebook 3.x
File
tests/src/Functional/SocialAuthFacebookSettingsFormTest.php
View source
<?php
namespace Drupal\Tests\social_auth_facebook\Functional;
use Drupal\Tests\social_auth\Functional\SocialAuthTestBase;
class SocialAuthFacebookSettingsFormTest extends SocialAuthTestBase {
protected static $modules = [
'social_auth_facebook',
];
protected function setUp() : void {
$this->module = 'social_auth_facebook';
$this->provider = 'facebook';
$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 = [
'app_id' => $this
->randomString(10),
'app_secret' => $this
->randomString(10),
'graph_version' => '2.10',
];
$this
->checkSettingsFormSubmission();
}
}