Permalink
Browse files

Merge pull request #1653 from dongilbert/testcleanup

Cleaning up the Legacy Unit Test Tree
  • Loading branch information...
2 parents 5cb8968 + ac21edd commit cbc045c8a5b87b70540b8ab9e2524bbff0e0c187 @ianmacl ianmacl committed Oct 30, 2012
Showing with 2,023 additions and 1,083 deletions.
  1. +27 −14 tests/suites/legacy/application/JApplicationHelperTest.php
  2. +168 −40 tests/suites/legacy/application/JApplicationTest.php
  3. +18 −6 tests/suites/legacy/categories/JCategoriesTest.php
  4. +27 −3 tests/suites/legacy/categories/JCategoryNodeTest.php
  5. +31 −11 tests/suites/legacy/component/JComponentHelperTest.php
  6. +53 −19 tests/suites/legacy/controller/JControllerAdminTest.php
  7. +51 −20 tests/suites/legacy/controller/JControllerFormTest.php
  8. +156 −74 tests/suites/legacy/controller/JControllerLegacyTest.php
  9. +47 −4 tests/suites/legacy/controller/stubs/controller.php
  10. +23 −12 tests/suites/legacy/controller/stubs/controllerform.php
  11. +51 −0 tests/suites/legacy/error/JErrorInspector.php
  12. +341 −263 tests/suites/legacy/error/JErrorTest.php
  13. +142 −116 tests/suites/legacy/exception/JExceptionTest.php
  14. +7 −5 tests/suites/legacy/form/field/JFormFieldCategoryTest.php
  15. +7 −7 tests/suites/legacy/form/field/JFormFieldComponentLayoutTest.php
  16. +9 −8 tests/suites/legacy/form/field/JFormFieldModuleLayoutTest.php
  17. +30 −33 tests/suites/legacy/html/JHtmlMenuTest.php
  18. +5 −29 tests/suites/legacy/installer/JInstallerManifestTest.php
  19. +7 −3 tests/suites/legacy/installer/JInstallerTest.php
  20. +5 −23 tests/suites/legacy/installer/manifest/JInstallerManifestLibraryTest.php
  21. +5 −24 tests/suites/legacy/installer/manifest/JInstallerManifestPackageTest.php
  22. +62 −14 tests/suites/legacy/menu/JMenuTest.php
  23. +52 −13 tests/suites/legacy/model/JModelAdminTest.php
  24. +21 −6 tests/suites/legacy/model/JModelFormTest.php
  25. +16 −5 tests/suites/legacy/model/JModelItemTest.php
  26. +35 −49 tests/suites/legacy/model/JModelLegacyTest.php
  27. +27 −4 tests/suites/legacy/model/JModelListTest.php
  28. +2 −2 tests/suites/legacy/model/stubs/foobar.php
  29. +2 −2 tests/suites/legacy/model/stubs/lead.php
  30. +2 −2 tests/suites/legacy/model/stubs/name.php
  31. +2 −2 tests/suites/legacy/model/stubs/room.php
  32. +32 −8 tests/suites/legacy/module/JModuleHelperTest.php
  33. +71 −52 tests/suites/legacy/pathway/JPathwayTest.php
  34. +6 −5 tests/suites/legacy/pathway/stubs/includes/pathway.php
  35. +33 −7 tests/suites/legacy/request/JFilterInput-mock-general.php
  36. +34 −20 tests/suites/legacy/request/JRequest-helper-dataset.php
  37. +40 −4 tests/suites/legacy/request/JRequestGetVarTest.php
  38. +19 −9 tests/suites/legacy/request/JRequestGetmethodTest.php
  39. +106 −51 tests/suites/legacy/request/JRequestTest.php
  40. +22 −9 tests/suites/legacy/table/JTableCategoryTest.php
  41. +28 −20 tests/suites/legacy/table/JTableContentTest.php
  42. +19 −6 tests/suites/legacy/table/JTableMenuTest.php
  43. +17 −7 tests/suites/legacy/table/JTableModuleTest.php
  44. +31 −9 tests/suites/legacy/table/JTableSessionTest.php
  45. +19 −6 tests/suites/legacy/table/menu/JTableMenuTypeTest.php
  46. +115 −57 tests/suites/legacy/view/JViewLegacyTest.php
@@ -12,26 +12,28 @@
*
* @package Joomla.UnitTest
* @subpackage Application
+ *
+ * @since 12.3
*/
class JApplicationHelperInspector extends JApplicationHelper
{
/**
- * Method to get the current application data
- *
- * @return array The array of application data objects.
- */
+ * Method to get the current application data
+ *
+ * @return array The array of application data objects.
+ */
public static function get()
{
return self::$_clients;
}
/**
- * Set the application data.
- *
- * @param string $apps The app to set.
- *
- * @return void
- */
+ * Set the application data.
+ *
+ * @param string $apps The app to set.
+ *
+ * @return void
+ */
public static function set($apps)
{
self::$_clients = $apps;
@@ -41,12 +43,19 @@ public static function set($apps)
/**
* Test class for JApplicationHelper.
*
- * @since 11.1
+ * @package Joomla.UnitTest
+ * @subpackage Application
+ *
+ * @since 11.1
*/
-class JApplicationHelperTest extends PHPUnit_Framework_TestCase
+class JApplicationHelperTest extends TestCase
{
/**
- * @todo Implement testGetComponentName().
+ * Test JApplicationHelper::getComponentName
+ *
+ * @return void
+ *
+ * @todo Implement testGetComponentName().
*/
public function testGetComponentName()
{
@@ -55,7 +64,11 @@ public function testGetComponentName()
}
/**
- * @todo Implement testGetClientInfo().
+ * Test JApplicationHelper::getClientInfo
+ *
+ * @return void
+ *
+ * @todo Implement testGetClientInfo().
*/
public function testGetClientInfo()
{
Oops, something went wrong.

0 comments on commit cbc045c

Please sign in to comment.