TestSalesforceAuthProvider.php in Salesforce Suite 8.3
File
src/Tests/TestSalesforceAuthProvider.php
View source
<?php
namespace Drupal\salesforce\Tests;
use Drupal\Core\Form\FormStateInterface;
use Drupal\salesforce\SalesforceAuthProviderPluginBase;
use Drupal\salesforce\Storage\SalesforceAuthTokenStorageInterface;
use OAuth\Common\Http\Client\ClientInterface;
use OAuth\Common\Token\TokenInterface;
class TestSalesforceAuthProvider extends SalesforceAuthProviderPluginBase {
public function __construct() {
}
public function getInstanceUrl() {
return 'https://example.com';
}
public function refreshAccessToken(TokenInterface $token) {
return TRUE;
}
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
return [];
}
}