use api success & api failure & apiSetup for cleaner tests
[civicrm-core.git] / tests / phpunit / api / v3 / SurveyRespondantTest.php
index ef625282cb8b65ea415d2e408140deee5a70caf4..7d1bceed1a7901d0de4e6b66369f8d55b88a2ac4 100644 (file)
@@ -76,7 +76,7 @@ class api_v3_SurveyRespondantTest extends CiviUnitTestCase {
    */
   public function testGetSurveyRespondants() {
     $result = civicrm_api("SurveyRespondant","get", $this->params );
-    $this->assertEquals($result['is_error'], 0);
+    $this->assertAPISuccess($result);
     $this->documentMe($this->params, $result, __FUNCTION__, __FILE__);
     $this->assertAPISuccess($result, 'In line ' . __LINE__);
   }