CanNotifyTest.php in Create user permission 8
File
tests/src/FunctionalJavascript/CanNotifyTest.php
View source
<?php
namespace Drupal\Tests\create_user_permission\FunctionalJavascript;
use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
class CanNotifyTest extends JavascriptTestBase {
public static $modules = [
'create_user_permission',
];
public function testCanNotify() {
$create_user = $this
->drupalCreateUser([
'create users',
]);
$this
->drupalLogin($create_user);
$this
->drupalGet('admin/people/create');
$this
->assertTrue($this
->getSession()
->getPage()
->find('css', '#edit-notify')
->isVisible());
}
}
Classes
Name |
Description |
CanNotifyTest |
Test that "create users" able users can notify users about the new account. |