From: Tim Otten Date: Tue, 1 Oct 2013 23:41:15 +0000 (+0200) Subject: CRM-13460 - CRM_Utils_RuleTest - Remove dead code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=69244ea1ddf139cde03f2562bfb4a9c9ddef8822;p=civicrm-core.git CRM-13460 - CRM_Utils_RuleTest - Remove dead code ---------------------------------------- * CRM-13460: Make the numeric rule checks stricter http://issues.civicrm.org/jira/browse/CRM-13460 --- diff --git a/tests/phpunit/CRM/Utils/RuleTest.php b/tests/phpunit/CRM/Utils/RuleTest.php index 22071172cb..bdceab698b 100644 --- a/tests/phpunit/CRM/Utils/RuleTest.php +++ b/tests/phpunit/CRM/Utils/RuleTest.php @@ -38,7 +38,7 @@ class CRM_Utils_RuleTest extends CiviUnitTestCase { * @dataProvider positiveDataProvider */ function testPositive($inputData, $expectedResult) { - $this->assertEquals($expectedResult, CRM_Utils_Rule::positiveInteger($inputData, $inputType)); + $this->assertEquals($expectedResult, CRM_Utils_Rule::positiveInteger($inputData)); } function positiveDataProvider() { @@ -56,7 +56,7 @@ class CRM_Utils_RuleTest extends CiviUnitTestCase { * @dataProvider numericDataProvider */ function testNumeric($inputData, $expectedResult) { - $this->assertEquals($expectedResult, CRM_Utils_Rule::numeric($inputData, $inputType)); + $this->assertEquals($expectedResult, CRM_Utils_Rule::numeric($inputData)); } function numericDataProvider() {