test fix - should have failed
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 5 May 2014 05:21:07 +0000 (22:21 -0700)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 5 May 2014 05:21:07 +0000 (22:21 -0700)
tests/phpunit/api/v3/SystemTest.php

index 3e04fc5bf70093ffe2f80a5c3567df6a9b9b65a1..07688b711fcaa53aef46debc348f62fef53f7a53 100644 (file)
@@ -133,6 +133,6 @@ class api_v3_SystemTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess('SystemLog', 'getsingle', array('sequential' => 1, 'message' => array('LIKE' => '%Chris%')));
     $this->assertEquals($result['message'], 'We wish you a merry Christmas');
     $this->assertEquals($result['level'], 'info');
-    $this->callAPISuccess('system_log', 'create', array('message' => 'msg'));
+    $this->callAPIFailure('system_log', 'create', array('message' => 'msg'));
   }
 }