You are here

public function UiPageTest::testInviteSendPage in User External Invite 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/UiPageTest.php \Drupal\Tests\user_external_invite\Functional\UiPageTest::testInviteSendPage()

Tests that the reaction rule listing page works.

File

tests/src/Functional/UiPageTest.php, line 23

Class

UiPageTest
Tests that the Invite pages are reachable.

Namespace

Drupal\Tests\user_external_invite\Functional

Code

public function testInviteSendPage() {

  // Give user the permission needed to send an invite.
  $account = $this
    ->drupalCreateUser([
    'invite new user',
  ]);
  $this
    ->drupalLogin($account);
  $this
    ->drupalGet('admin/people/invite');
  $this
    ->assertSession()
    ->statusCodeEquals(200);

  // Test that the user can see the page title.
  $this
    ->assertSession()
    ->pageTextContains('Invite User');
}