INFRA-132 - @param type fixes
[civicrm-core.git] / tests / phpunit / api / v3 / CaseTypeTest.php
index e8b4d3d60a6b33506d935ce6bab9fb7f2b43bbc6..da563fdda47e5d1e8d326ac95167dfc0d40c83a5 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -32,7 +32,7 @@ require_once 'CiviTest/CiviCaseTestCase.php';
  */
 class api_v3_CaseTypeTest extends CiviCaseTestCase {
 
-  function setUp() {
+  public function setUp() {
     $this->quickCleanup(array('civicrm_case_type'));
     parent::setUp();
 
@@ -58,7 +58,7 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
         'caseRoles' => array(
           array('name' => 'First role', 'creator' => 1, 'manager' => 1),
         ),
-      )
+      ),
     );
   }
 
@@ -67,22 +67,22 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
    * This method is called after a test is executed.
    *
    */
-  function tearDown() {
+  public function tearDown() {
     parent::tearDown();
     $this->quickCleanup(array('civicrm_case_type'));
   }
 
   /**
-   * check with empty array
+   * Check with empty array
    */
-  function testCaseTypeCreateEmpty() {
+  public function testCaseTypeCreateEmpty() {
     $this->callAPIFailure('CaseType', 'create', array());
   }
 
   /**
-   * check if required fields are not passed
+   * Check if required fields are not passed
    */
-  function testCaseTypeCreateWithoutRequired() {
+  public function testCaseTypeCreateWithoutRequired() {
     $params = array(
       'name' => 'this case should fail',
     );
@@ -96,10 +96,10 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
   }
 
   /**
-   * test create methods with valid data
+   * Test create methods with valid data
    * success expected
    */
-  function testCaseTypeCreate() {
+  public function testCaseTypeCreate() {
     // Create Case Type
     $params = array(
       'title' => 'Application',
@@ -120,7 +120,7 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
   /**
    * Create a case with an invalid name
    */
-  function testCaseTypeCreate_invalidName() {
+  public function testCaseTypeCreate_invalidName() {
     // Create Case Type
     $params = array(
       'title' => 'Application',
@@ -136,9 +136,9 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
   /**
    * Test update (create with id) function with valid parameters
    */
-  function testCaseTypeUpdate() {
+  public function testCaseTypeUpdate() {
     // Create Case Type
-    $params =  array(
+    $params = array(
       'title' => 'Application',
       'name' => 'Application',
       'is_active' => 1,
@@ -162,9 +162,9 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
   /**
    * Test delete function with valid parameters
    */
-  function testCaseTypeDelete_New() {
+  public function testCaseTypeDelete_New() {
     // Create Case Type
-    $params =  array(
+    $params = array(
       'title' => 'Application',
       'name' => 'Application',
       'is_active' => 1,
@@ -181,10 +181,10 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
   }
 
   /**
-   * test create methods with xml file
+   * Test create methods with xml file
    * success expected
    */
-  function testCaseTypeCreateWithDefinition() {
+  public function testCaseTypeCreateWithDefinition() {
     // Create Case Type
     $params = $this->fixtures['Application_with_Definition'];
     $result = $this->callAPISuccess('CaseType', 'create', $params);
@@ -203,7 +203,7 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
   /**
    * Create a CaseType+case then delete the CaseType.
    */
-  function testCaseTypeDelete_InUse() {
+  public function testCaseTypeDelete_InUse() {
     // Create Case Type
     $params = $this->fixtures['Application_with_Definition'];
     $createCaseType = $this->callAPISuccess('CaseType', 'create', $params);
@@ -229,4 +229,3 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
     $this->assertEquals(0, $getCaseType['count']);
   }
 }
-