The data returned by SkinComponentTableOfContents::getTemplateData is a nested array which makes it somewhat arduous for the client to know how many sections are in the array. Add `number-section-count` to make it easier on the client. Additionally: * Add validation in SkinMustacheTest for keys that contain numbers. * Revise unit tests to only test public method (`getTemplateData`) and not private methods. * Remove `testGetTOCData` test as these test cases will now be covered by the `testGetTemplateData` unit test. Bug: T300973 Change-Id: Ifaee451e1903f2accd0ada2f2ed6dfa3f83037b6 |
||
|---|---|---|
| .. | ||
| SkinComponent.php | ||
| SkinComponentLogo.php | ||
| SkinComponentRegistry.php | ||
| SkinComponentTableOfContents.php | ||