CanNotifyTest.php in Create user permission 2.x
File
tests/src/FunctionalJavascript/CanNotifyTest.php
View source
<?php
namespace Drupal\Tests\create_user_permission\Functional;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
class CanNotifyTest extends WebDriverTestBase {
protected $defaultTheme = 'stark';
protected 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. |