You are here

public function StatusPageTest::testAuthProviderRequirementsOk in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 tests/src/Functional/StatusPageTest.php \Drupal\Tests\salesforce\Functional\StatusPageTest::testAuthProviderRequirementsOk()
  2. 8.3 tests/src/Functional/StatusPageTest.php \Drupal\Tests\salesforce\Functional\StatusPageTest::testAuthProviderRequirementsOk()

Test requirements when everything is in place.

File

tests/src/Functional/StatusPageTest.php, line 115

Class

StatusPageTest
Test salesforce_requirements().

Namespace

Drupal\Tests\salesforce\Functional

Code

public function testAuthProviderRequirementsOk() {
  $this->authMan
    ->setHasProviders(TRUE);
  $this->authMan
    ->setHasConfig(TRUE);
  $this->authMan
    ->setHasToken(TRUE);
  $requirements = salesforce_get_auth_provider_requirements();
  $this
    ->assertEquals(REQUIREMENT_OK, $requirements['severity']);
  $this
    ->assertArrayNotHasKey('description', $requirements);
}