From 4a41780f77798ad52d5d466a7eca0595c2eb90fb Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 5 May 2014 08:35:08 -0700 Subject: [PATCH] fix test to match behaviour --- tests/phpunit/api/v3/SystemTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/api/v3/SystemTest.php b/tests/phpunit/api/v3/SystemTest.php index 07688b711f..3d6b5a7243 100644 --- a/tests/phpunit/api/v3/SystemTest.php +++ b/tests/phpunit/api/v3/SystemTest.php @@ -129,10 +129,9 @@ class api_v3_SystemTest extends CiviUnitTestCase { * Test system log function */ function testSystemLogNoLevel() { - $this->callAPISuccess('system', 'log', array( 'message' => 'We wish you a merry Christmas')); + $this->callAPISuccess('system', 'log', array( 'message' => 'We wish you a merry Christmas', 'level' => 'alert')); $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->callAPIFailure('system_log', 'create', array('message' => 'msg')); + $this->assertEquals($result['level'], 'alert'); } } -- 2.25.1