You are here

public function JanrainCaptureTest::testJanrainCapture in Janrain Registration 8

Tests janrain_capture module.

File

tests/src/Functional/JanrainCaptureTest.php, line 31

Class

JanrainCaptureTest
Tests janrain_capture module expectations.

Namespace

Drupal\Tests\janrain_capture\Functional

Code

public function testJanrainCapture() {
  $assert_session = $this
    ->assertSession();

  // Forgot password link should require authorisation code.
  $this
    ->drupalGet('janrain_capture/oauth', [
    'query' => [
      'url_type' => 'forgot',
    ],
  ]);
  $assert_session
    ->statusCodeEquals(200);

  // Make sure the setting forms are working.
  $this
    ->drupalLogin($this->rootUser);
  $this
    ->drupalGet('admin/config/people/janrain-capture/screens-settings');
  $assert_session
    ->statusCodeEquals(200);
}