mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11460] Add default behaviour tests for notification and email types.
PHPBB3-11460
This commit is contained in:
parent
02817158fc
commit
d3decaeedf
1 changed files with 12 additions and 2 deletions
|
@ -15,12 +15,22 @@ class phpbb_functional_notification_test extends phpbb_functional_test_case
|
||||||
static public function user_subscription_data()
|
static public function user_subscription_data()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
// Rows inserted by phpBB/install/schemas/schema_data.sql
|
||||||
|
// Also see PHPBB3-11460
|
||||||
array('post_notification', true),
|
array('post_notification', true),
|
||||||
array('topic_notification', true),
|
array('topic_notification', true),
|
||||||
|
|
||||||
// PHPBB3-11460
|
|
||||||
array('post_email', true),
|
array('post_email', true),
|
||||||
array('topic_email', true),
|
array('topic_email', true),
|
||||||
|
|
||||||
|
// Default behaviour for in-board notifications:
|
||||||
|
// If user did not opt-out, in-board notifications are on.
|
||||||
|
array('bookmark_notification', true),
|
||||||
|
array('quote_notification', true),
|
||||||
|
|
||||||
|
// Default behaviour for email notifications:
|
||||||
|
// If user did not opt-in, email notifications are off.
|
||||||
|
array('bookmark_email', false),
|
||||||
|
array('quote_email', false),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue