From: Nikki Murray Date: Wed, 14 Oct 2015 20:39:44 +0000 (-0400) Subject: CRM-13823 Fixing tests to work with is_visible X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f05193f70e07583746a19cd9e0491576da4d60dc;p=civicrm-core.git CRM-13823 Fixing tests to work with is_visible --- diff --git a/tests/phpunit/api/v3/SystemCheckTest.php b/tests/phpunit/api/v3/SystemCheckTest.php index 166522f4a9..40fbc4e731 100644 --- a/tests/phpunit/api/v3/SystemCheckTest.php +++ b/tests/phpunit/api/v3/SystemCheckTest.php @@ -85,7 +85,7 @@ class api_v3_SystemCheckTest extends CiviUnitTestCase { $testedCheck = array(); } } - $this->assertArrayNotHasKey('name', $testedCheck, ' in line ' . __LINE__); + $this->assertEquals($testedCheck['is_visible'], '0', 'in line ' . __LINE__); } /** @@ -109,7 +109,7 @@ class api_v3_SystemCheckTest extends CiviUnitTestCase { $testedCheck = array(); } } - $this->assertArrayNotHasKey('name', $testedCheck, ' in line ' . __LINE__); + $this->assertEquals($testedCheck['is_visible'], '0', 'in line ' . __LINE__);; } /** @@ -133,7 +133,7 @@ class api_v3_SystemCheckTest extends CiviUnitTestCase { $testedCheck = array(); } } - $this->assertArrayHasKey('name', $testedCheck, ' in line ' . __LINE__); + $this->assertEquals($testedCheck['is_visible'], '1', 'in line ' . __LINE__); } /** @@ -157,7 +157,7 @@ class api_v3_SystemCheckTest extends CiviUnitTestCase { $testedCheck = array(); } } - $this->assertArrayHasKey('name', $testedCheck, ' in line ' . __LINE__); + $this->assertEquals($testedCheck['is_visible'], '1', 'in line ' . __LINE__); } /** @@ -179,7 +179,7 @@ class api_v3_SystemCheckTest extends CiviUnitTestCase { $testedCheck = array(); } } - $this->assertArrayNotHasKey('name', $testedCheck, ' in line ' . __LINE__); + $this->assertEquals($testedCheck['is_visible'], '0', 'in line ' . __LINE__); } /** @@ -201,7 +201,7 @@ class api_v3_SystemCheckTest extends CiviUnitTestCase { $testedCheck = array(); } } - $this->assertArrayNotHasKey('name', $testedCheck, ' in line ' . __LINE__); + $this->assertEquals($testedCheck['is_visible'], '0', 'in line ' . __LINE__); } /** @@ -223,7 +223,7 @@ class api_v3_SystemCheckTest extends CiviUnitTestCase { $testedCheck = array(); } } - $this->assertArrayHasKey('name', $testedCheck, ' in line ' . __LINE__); + $this->assertEquals($testedCheck['is_visible'], '1', 'in line ' . __LINE__); } }