From 7c8ba7a29ed78bb3a5b3d6b6f105b262d6388cf2 Mon Sep 17 00:00:00 2001 From: Eileen Date: Fri, 3 Jan 2014 16:06:30 +1300 Subject: [PATCH] Test failures in CRM tests due to year being coded in --- tests/phpunit/CRM/Batch/Form/EntryTest.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/CRM/Batch/Form/EntryTest.php b/tests/phpunit/CRM/Batch/Form/EntryTest.php index dc64a67407..8fb0c47fee 100644 --- a/tests/phpunit/CRM/Batch/Form/EntryTest.php +++ b/tests/phpunit/CRM/Batch/Form/EntryTest.php @@ -34,7 +34,6 @@ require_once 'CiviTest/CiviUnitTestCase.php'; */ class CRM_Batch_Form_EntryTest extends CiviUnitTestCase { - public $_eNoticeCompliant = TRUE; /** * Membership type name used in test function * @var String @@ -160,12 +159,12 @@ class CRM_Batch_Form_EntryTest extends CiviUnitTestCase { $this->assertEquals(3, $result['count']); //check start dates #1 should default to 1 Jan this year, #2 should be as entered - $this->assertEquals(date('Y-m-d', strtotime('first day of January this year')), $result['values'][1]['start_date']); + $this->assertEquals(date('Y-m-d', strtotime('first day of January 2013')), $result['values'][1]['start_date']); $this->assertEquals('2013-02-03', $result['values'][2]['start_date']); //check start dates #1 should default to 1 Jan this year, #2 should be as entered - $this->assertEquals(date('Y-m-d', strtotime('last day of December this year')), $result['values'][1]['end_date']); - $this->assertEquals(date('Y-m-d', strtotime('last day of December this year')), $result['values'][2]['end_date']); + $this->assertEquals(date('Y-m-d', strtotime('last day of December 2013')), $result['values'][1]['end_date']); + $this->assertEquals(date('Y-m-d', strtotime('last day of December 2013')), $result['values'][2]['end_date']); $this->assertEquals('2013-12-01', $result['values'][3]['end_date']); //check start dates #1 should default to 1 Jan this year, #2 should be as entered -- 2.25.1