From 46a29d7d4cd937c6b71a36848a223238e0abb9d3 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Thu, 23 May 2013 15:21:13 +0530 Subject: [PATCH] minor test fixes WRT https://test.civicrm.org/job/CiviCRM-4.3-git/LABEL=debian6,SUITE=api_v3_AllTests/lastCompletedBuild/testReport/ failure result --- tests/phpunit/api/v3/CustomSearchTest.php | 6 +++--- tests/phpunit/api/v3/ReportTemplateTest.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/phpunit/api/v3/CustomSearchTest.php b/tests/phpunit/api/v3/CustomSearchTest.php index eda0c03519..bbade40886 100644 --- a/tests/phpunit/api/v3/CustomSearchTest.php +++ b/tests/phpunit/api/v3/CustomSearchTest.php @@ -26,7 +26,7 @@ class api_v3_CustomSearchTest extends CiviUnitTestCase { $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "CRM_Contact_Form_Search_Custom_Examplez" AND label = "CRM_Contact_Form_Search_Custom_Examplez" - AND option_group_id = 24'); + AND option_group_id = 25'); $this->assertDBQuery(1, 'SELECT is_active FROM civicrm_option_value WHERE name = "CRM_Contact_Form_Search_Custom_Examplez"'); @@ -41,7 +41,7 @@ class api_v3_CustomSearchTest extends CiviUnitTestCase { $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "CRM_Contact_Form_Search_Custom_Examplez" AND label = "CRM_Contact_Form_Search_Custom_Examplez" - AND option_group_id = 24'); + AND option_group_id = 25'); $this->assertDBQuery(0, 'SELECT is_active FROM civicrm_option_value WHERE name = "CRM_Contact_Form_Search_Custom_Examplez"'); @@ -56,7 +56,7 @@ class api_v3_CustomSearchTest extends CiviUnitTestCase { $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "CRM_Contact_Form_Search_Custom_Examplez" AND label = "CRM_Contact_Form_Search_Custom_Examplez" - AND option_group_id = 24'); + AND option_group_id = 25'); $this->assertDBQuery(1, 'SELECT is_active FROM civicrm_option_value WHERE name = "CRM_Contact_Form_Search_Custom_Examplez"'); diff --git a/tests/phpunit/api/v3/ReportTemplateTest.php b/tests/phpunit/api/v3/ReportTemplateTest.php index c6601e85f2..e689782005 100644 --- a/tests/phpunit/api/v3/ReportTemplateTest.php +++ b/tests/phpunit/api/v3/ReportTemplateTest.php @@ -61,7 +61,7 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase { $this->assertEquals(7, $result['values'][$entityId]['component_id'], 'In line ' . __LINE__); $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "CRM_Report_Form_Examplez" - AND option_group_id = 40 '); + AND option_group_id = 41 '); $this->assertDBQuery(1, 'SELECT is_active FROM civicrm_option_value WHERE name = "CRM_Report_Form_Examplez"'); @@ -75,7 +75,7 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase { $this->assertEquals(1, $result['count'], 'In line ' . __LINE__); $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "CRM_Report_Form_Examplez" - AND option_group_id = 40'); + AND option_group_id = 41'); $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "CRM_Report_Form_Examplez" AND component_id IS NULL'); @@ -90,7 +90,7 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase { $this->assertEquals(1, $result['count'], 'In line ' . __LINE__); $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "CRM_Report_Form_Examplez" - AND option_group_id = 40'); + AND option_group_id = 41'); $this->assertDBQuery(0, 'SELECT is_active FROM civicrm_option_value WHERE name = "CRM_Report_Form_Examplez"'); @@ -104,7 +104,7 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase { $this->assertEquals(1, $result['count'], 'In line ' . __LINE__); $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "CRM_Report_Form_Examplez" - AND option_group_id = 40'); + AND option_group_id = 41'); $this->assertDBQuery(1, 'SELECT is_active FROM civicrm_option_value WHERE name = "CRM_Report_Form_Examplez"'); -- 2.25.1