Mass update tests to use callAPIFailure
[civicrm-core.git] / tests / phpunit / api / v3 / PhoneTest.php
index bd3878e9f1af982804fdc3e293a60e1ac88f3a10..3e22656c8a262fd8cb73c1fe9200dbccdcf12e03 100644 (file)
@@ -154,8 +154,7 @@ class api_v3_PhoneTest extends CiviUnitTestCase {
    */
   public function testCreateWrongParamsType() {
     $params = 'a string';
-    $result = civicrm_api('Phone', 'Create', $params);
-    $this->assertEquals(1, $result['is_error'], "In line " . __LINE__);
+    $result = $this->callAPIFailure('Phone', 'Create', $params);
   }
 
   /**