public function SimplenewsPersonalizationFormsTest::testSubscribeRequestPassword in Simplenews 3.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/SimplenewsPersonalizationFormsTest.php \Drupal\Tests\simplenews\Functional\SimplenewsPersonalizationFormsTest::testSubscribeRequestPassword()
Subscribe, check no user is created.
File
- tests/
src/ Functional/ SimplenewsPersonalizationFormsTest.php, line 91
Class
- SimplenewsPersonalizationFormsTest
- Tests crucial aspects of Subscriber fieldability and User field sync.
Namespace
Drupal\Tests\simplenews\FunctionalCode
public function testSubscribeRequestPassword() {
$email = $this
->randomEmail();
$this
->subscribe([], $email);
$this
->assertFalse(user_load_by_mail($email));
}