diff options
| author | Nils Adermann <naderman@naderman.de> | 2014-10-25 16:55:29 -0700 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2014-10-25 16:55:29 -0700 |
| commit | 4859cec0c50cc522e73dba5555def308835b1357 (patch) | |
| tree | 3a14ab74c35a76081d53361b143c454f21b7473e /tests/functional | |
| parent | 07e7cde5609342c655c1f8d7d0e01a98cddc040b (diff) | |
| parent | 0dcb874c0987156b0c4bb2ef4e935ff6b6f2fd46 (diff) | |
| download | forums-4859cec0c50cc522e73dba5555def308835b1357.tar forums-4859cec0c50cc522e73dba5555def308835b1357.tar.gz forums-4859cec0c50cc522e73dba5555def308835b1357.tar.bz2 forums-4859cec0c50cc522e73dba5555def308835b1357.tar.xz forums-4859cec0c50cc522e73dba5555def308835b1357.zip | |
Merge remote-tracking branch 'github-marc1706/ticket/13207' into prep-release-3.1.0
* github-marc1706/ticket/13207:
[ticket/13207] Add notification manager mock to user_add method in tests
[ticket/13207] Move default user notifications settings to user_add()
[ticket/13207] Add default subscription options for newly registered users
Diffstat (limited to 'tests/functional')
| -rw-r--r-- | tests/functional/registration_test.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/functional/registration_test.php b/tests/functional/registration_test.php index 45a684db19..26473c4fcd 100644 --- a/tests/functional/registration_test.php +++ b/tests/functional/registration_test.php @@ -45,12 +45,24 @@ class phpbb_functional_registration_test extends phpbb_functional_test_case $form = $crawler->selectButton('Submit')->form(array( 'username' => 'user-reg-test', 'email' => 'user-reg-test@phpbb.com', - 'new_password' => 'testtest', - 'password_confirm' => 'testtest', + 'new_password' => 'user-reg-testuser-reg-test', + 'password_confirm' => 'user-reg-testuser-reg-test', )); $form['tz']->select('Europe/Berlin'); $crawler = self::submit($form); $this->assertContainsLang('ACCOUNT_ADDED', $crawler->filter('#message')->text()); } + + /** + * @depends test_register_new_account + */ + public function test_default_subscription_options() + { + $this->login('user-reg-test'); + $crawler = self::request('GET', 'ucp.php?i=ucp_notifications&mode=notification_options&sid=' . $this->sid); + $form_values = $crawler->selectButton('Submit')->form()->getValues(); + $this->assertEquals(1, $form_values['notification.type.post_notification.method.email']); + $this->assertEquals(1, $form_values['notification.type.topic_notification.method.email']); + } } |
