From 0031e7ea6d02fd489591596867974edd7fc23ee7 Mon Sep 17 00:00:00 2001 From: Eileen Date: Fri, 3 Jan 2014 17:27:09 +1300 Subject: [PATCH] E-notice fix --- tests/phpunit/CRM/Core/Page/AJAXTest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/CRM/Core/Page/AJAXTest.php b/tests/phpunit/CRM/Core/Page/AJAXTest.php index 28adafd279..0c37781258 100644 --- a/tests/phpunit/CRM/Core/Page/AJAXTest.php +++ b/tests/phpunit/CRM/Core/Page/AJAXTest.php @@ -3,10 +3,6 @@ require_once 'CiviTest/CiviUnitTestCase.php'; class CRM_Core_Page_AJAXTest extends CiviUnitTestCase { - //@todo make BAO enotice compliant & remove the line below - // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE - // new test classes should be compliant. - public $_eNoticeCompliant = FALSE; public function testCheckAuthz() { $cases = array(); @@ -50,7 +46,8 @@ class CRM_Core_Page_AJAXTest extends CiviUnitTestCase { $cases[] = array('invalidtype', 'CRM_Foo_Page_AJAX::method', FALSE); foreach ($cases as $case) { - list ($type, $className, $expectedResult, $methodName) = $case; + list ($type, $className, $expectedResult) = $case; + $methodName = CRM_Utils_Array::value(3, $case); $actualResult = CRM_Core_Page_AJAX::checkAuthz($type, $className, $methodName); if ($methodName) { $this->assertEquals($expectedResult, $actualResult, -- 2.25.1