UiPageTest.php in User External Invite 2.0.x
File
tests/src/Functional/UiPageTest.php
View source
<?php
namespace Drupal\Tests\user_external_invite\Functional;
use Drupal\Tests\BrowserTestBase;
class UiPageTest extends BrowserTestBase {
protected $defaultTheme = 'stark';
public static $modules = [
'user_external_invite',
'token',
];
public function testInviteSendPage() {
$account = $this
->drupalCreateUser([
'invite new user',
]);
$this
->drupalLogin($account);
$this
->drupalGet('admin/people/invite');
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->pageTextContains('Invite User');
}
}
Classes
Name |
Description |
UiPageTest |
Tests that the Invite pages are reachable. |