X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FGrantTest.php;h=2f2479e7456c453d4c159cf880d550655d1c8ea5;hb=b94eea5170f9b25e817067941198129b5de3224c;hp=bae689b4b5f88b96d0f6b9f4d88834587eb8dbb3;hpb=05875046816e197882bbb02fe20e2f758475037f;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/GrantTest.php b/tests/phpunit/api/v3/GrantTest.php index bae689b4b5..2f2479e745 100644 --- a/tests/phpunit/api/v3/GrantTest.php +++ b/tests/phpunit/api/v3/GrantTest.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2018 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -131,7 +131,7 @@ class api_v3_GrantTest extends CiviUnitTestCase { $result = $this->callAPISuccess($this->_entity, 'create', $this->params); $this->ids['grant'][0] = $result['id']; $result = $this->callAPIAndDocument($this->_entity, 'get', array('rationale' => 'Just Because'), __FUNCTION__, __FILE__); - $this->assertAPISuccess($result); + $this->assertEquals($result['id'], $result['values'][$result['id']]['id']); $this->assertEquals(1, $result['count']); }