You are here

public function SimplenewsPersonalizationFormsTest::testSubscribeRequestPassword in Simplenews 3.x

Same name and namespace in other branches
  1. 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\Functional

Code

public function testSubscribeRequestPassword() {
  $email = $this
    ->randomEmail();
  $this
    ->subscribe([], $email);
  $this
    ->assertFalse(user_load_by_mail($email));
}