|
Odyssey
|
Protected Member Functions | |
| runAssertions ($post) | |
| singleTrustIdEmptyCuResult () | |
| singleTrustIdScrubCuResult () | |
| trustIdArrayNoCu () | |
| trustIdArrayScrubCu () | |
| postToUrl ($post) | |
Protected Attributes | |
| $your_cookie = '' | |
| $url = 'http://www4.homecu.net/hcuadm/CuVendorListApi.prg' | |
Unit test for the cutd_list() api. cutd_list() allows usage of a single trusted ID or an array of trusted id's, other functions accessing it nuke/ don't use the input of $_POST['trustedids'].
************************* NOTE TO TEST LIVE CONNECTION ************************** This will require one modification: your HCUticket cookie for www4. The HCUticket value can be obtained by viewing your logged in cookies in the browser or doing a D & D of $_COOKIE somewhere (after logging into www4.) Place the resulting value in the "your_cookie" property below.
Definition at line 17 of file TestCuTdApi.php.
|
protected |
Basic native curl call for tests. Use only yo test live, do not leave calls in unit test.
| array | [Cu => string optional, trustid => string optional, trustids => string (JSON encoded array), optional] |
Definition at line 272 of file TestCuTdApi.php.
|
protected |
Common to all live tests, run assertions that check if we have an array with status and data members.
| array | $post |
Definition at line 126 of file TestCuTdApi.php.
|
protected |
Mock the response received from a live curl call, single trust ID, no CU.
Definition at line 137 of file TestCuTdApi.php.
|
protected |
Mock the response received from a live curl call, single trust ID, SCRUBCU.
Definition at line 164 of file TestCuTdApi.php.
| TestCuTdApi::test_has_results_with_array_of_trust_ids_and_empty_cu | ( | ) |
Test API, array of ID's, empty Cu.
Definition at line 71 of file TestCuTdApi.php.
| TestCuTdApi::test_has_results_with_single_trust_id_and_empty_cu | ( | ) |
| TestCuTdApi::test_has_results_with_single_trust_id_and_has_cu | ( | ) |
| TestCuTdApi::test_test_has_results_with_single_trust_id_and_has_cu | ( | ) |
Test API, array of ID's, SCRUBCU.
Definition at line 98 of file TestCuTdApi.php.
|
protected |
Mock the response with array of trusted ID's and no CU specified. This is a shortened version of the actual return array you'll get.
Definition at line 187 of file TestCuTdApi.php.
|
protected |
Mock the response with an array of trusted ID's and SCRUBCU specified. This is a shortened version of the actual return array you'll get.
Definition at line 232 of file TestCuTdApi.php.
1.8.15