@@ 395-413 (lines=19) @@ | ||
392 | * |
|
393 | * @return array |
|
394 | */ |
|
395 | public function get_disconnect_user_scenarios() { |
|
396 | return array( |
|
397 | 'Successful remote and local disconnection' => array( |
|
398 | true, |
|
399 | true, |
|
400 | true, |
|
401 | ), |
|
402 | 'Failed remote and successful local disconnection' => array( |
|
403 | false, |
|
404 | true, |
|
405 | false, |
|
406 | ), |
|
407 | 'Successful remote and failed local disconnection' => array( |
|
408 | true, |
|
409 | false, |
|
410 | false, |
|
411 | ), |
|
412 | ); |
|
413 | } |
|
414 | ||
415 | /** |
|
416 | * Filter to set the default constant values. |
@@ 162-168 (lines=7) @@ | ||
159 | /** |
|
160 | * Data provider for test_accepts_site_based_authentication. |
|
161 | */ |
|
162 | public function data_provider_test_accepts_site_based_authentication() { |
|
163 | return array( |
|
164 | 'allow_jetpack_site_auth: true; logged_in_user: false;' => array( true, false, true ), |
|
165 | 'allow_jetpack_site_auth: false; logged_in_user: false;' => array( false, false, false ), |
|
166 | 'allow_jetpack_site_auth: true; logged_in_user: true;' => array( true, true, false ), |
|
167 | ); |
|
168 | } |
|
169 | ||
170 | /** |
|
171 | * Data provider for test_private_site_accessibility. |