|
Odyssey
|
Protected Attributes | |
| $CompassObj = null | |
| $HB_ENV | |
| $json = '' | |
| $json_path = 'banking/library/menu-creators/compass-menu-config.json' | |
Unit test for the Compass Menu functionality, a WIP. Test that the single node selection works, whether top level or nested selections. AssertSame() used over assertEquals() because it is more strict(ish,) unit compares both type and value.
Definition at line 14 of file TestCompassSingleNodeSelection.php.
|
protected |
Expected response when we request a single nested node with the full_node param true. $this->CompassObj->singleCompassMenuNode($this->json_path, $this->json, 'dropdown-user-menu-ul-li', true);
Definition at line 280 of file TestCompassSingleNodeSelection.php.
|
protected |
Mock the JSON returned from hcuFunctions.i->CompassMenuJson().
Definition at line 185 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::setUp | ( | ) |
Set the properties used by all tests. HB_ENV is an injected dependency for CompassMenu.
Definition at line 40 of file TestCompassSingleNodeSelection.php.
|
protected |
This is the response for failed-login without a wrapper. Note it has sub-members tested in another test.
Definition at line 305 of file TestCompassSingleNodeSelection.php.
|
protected |
This is the response for last login without a wrapper. This is a sub-member of the previous failed-login test; this is a single sub-member of failed-login.
Definition at line 414 of file TestCompassSingleNodeSelection.php.
|
protected |
Expected response when we request a single nested node with the full_node param absent or false. $this->CompassObj->singleCompassMenuNode($this->json_path, $this->json, 'dropdown-user-menu-ul-li');
Definition at line 256 of file TestCompassSingleNodeSelection.php.
|
protected |
This is the response for failed-login with the wrapper. Note it has sub-members tested in another test.
Definition at line 358 of file TestCompassSingleNodeSelection.php.
|
protected |
As above, response for last login with the outer wrapper.
Definition at line 435 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::test_single_nested_node_failed_login_with_full_wrapper | ( | ) |
Test that the single node works and returns the full wrapper of the failed login node with a nested element. Note it has three other nested elements, testing covers an inner one below.
Definition at line 139 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::test_single_nested_node_failed_login_without_wrapper | ( | ) |
Test that the single node works and returns just the content of the failed login node with a nested element. Note it has three other nested elements, testing covers an inner one below.
Definition at line 126 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::test_single_nested_node_last_login_with_full_wrapper | ( | ) |
Test that the last-login node, which is nested inside the nested failed-login node, returns the content with the full outer wrapper.
Definition at line 167 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::test_single_nested_node_last_login_without_wrapper | ( | ) |
Test that the last-login node, which is nested inside the nested failed-login node, returns just the content without the wrapper.
Definition at line 154 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::test_single_nested_node_user_info_with_full_wrapper | ( | ) |
Test that the single node works and returns the full wrapper of the user info node with a nested element.
Definition at line 113 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::test_single_nested_node_user_info_without_wrapper | ( | ) |
Test that the single node works and returns just the content of the user info node with a nested element. This eliminates the wrapper and just returns its content.
Definition at line 101 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::test_top_level_secure_email_node_with_full_wrapper | ( | ) |
Test thesecure email top level node with the full wrapper .
Definition at line 88 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::test_top_level_secure_email_node_without_wrapper | ( | ) |
Test the secure email top level node without the node wrapper . $this->CompassObj->singleCompassMenuNode($this->json_path, $this->json, 'secure-email-item');
Definition at line 76 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::test_top_level_user_activity_node_with_full_wrapper | ( | ) |
Test the user activity top level node with the full wrapper .
Definition at line 63 of file TestCompassSingleNodeSelection.php.
| TestCompassSingleNodeSelection::test_top_level_user_activity_node_without_wrapper | ( | ) |
Test the user activity top level node without the node wrapper .
Definition at line 51 of file TestCompassSingleNodeSelection.php.
|
protected |
Expected response when we request the top level secure email node without the full_node param. $this->CompassObj->singleCompassMenuNode($this->json_path, $this->json, 'secure-email-item');
Definition at line 232 of file TestCompassSingleNodeSelection.php.
|
protected |
Expected response when we request the top level secure email node with the full_node param set to true. $this->CompassObj->singleCompassMenuNode($this->json_path, $this->json, 'secure-email-item', true);
Definition at line 243 of file TestCompassSingleNodeSelection.php.
|
protected |
Expected response when we request the top level user activity node without the full_node param. $this->CompassObj->singleCompassMenuNode($this->json_path, $this->json, 'user-activity');
Definition at line 208 of file TestCompassSingleNodeSelection.php.
|
protected |
Expected response when we request the top level user activity node with the full_node param set to true. $this->CompassObj->singleCompassMenuNode($this->json_path, $this->json, 'user-activity', true);
Definition at line 219 of file TestCompassSingleNodeSelection.php.
|
protected |
Definition at line 20 of file TestCompassSingleNodeSelection.php.
1.8.15