1 | <?php |
---|
2 | require_once 'user.php'; |
---|
3 | |
---|
4 | /** |
---|
5 | * Extended User test |
---|
6 | * Added a additonal array in data provider to test anything beyond the allowed params |
---|
7 | */ |
---|
8 | class Tests_44293 extends Tests_User { |
---|
9 | /** |
---|
10 | * Data provider for test_wp_new_user_notification(). |
---|
11 | * |
---|
12 | * Added a additonal array in data provider to test anything beyond the allowed params |
---|
13 | * |
---|
14 | * @return array { |
---|
15 | * @type array { |
---|
16 | * @type string $post_args The arguments that will merged with the $_POST array. |
---|
17 | * @type bool $admin_email_sent_expected The expected result of whether an email was sent to the admin. |
---|
18 | * @type bool $user_email_sent_expected The expected result of whether an email was sent to the user. |
---|
19 | * } |
---|
20 | * } |
---|
21 | */ |
---|
22 | function data_wp_new_user_notifications() { |
---|
23 | return array( |
---|
24 | array( |
---|
25 | '', |
---|
26 | true, |
---|
27 | false, |
---|
28 | ), |
---|
29 | array( |
---|
30 | 'admin', |
---|
31 | true, |
---|
32 | false, |
---|
33 | ), |
---|
34 | array( |
---|
35 | 'user', |
---|
36 | false, |
---|
37 | true, |
---|
38 | ), |
---|
39 | array( |
---|
40 | 'both', |
---|
41 | true, |
---|
42 | true, |
---|
43 | ), |
---|
44 | array( |
---|
45 | 'jibresh', |
---|
46 | false, |
---|
47 | false, |
---|
48 | ), |
---|
49 | ); |
---|
50 | } |
---|
51 | |
---|
52 | } |
---|