From 6d5f1345e8250a52a5b2572affb24fdfa6d8db13 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Fri, 1 Mar 2013 11:36:36 -0800 Subject: [PATCH] initial fixes --- .gitignore | 3 ++- templates/CRM/Price/Form/Set.tpl | 2 +- tests/phpunit/WebTest/Contribute/AddPricesetTest.php | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 0fe370577c..194ac8e4e6 100644 --- a/.gitignore +++ b/.gitignore @@ -138,5 +138,6 @@ joomla packages/ tests/phpunit/CiviTest/civicrm.settings.local.php l10n - vendor +civicrm.settings.php +sql/dummy_processor.mysql \ No newline at end of file diff --git a/templates/CRM/Price/Form/Set.tpl b/templates/CRM/Price/Form/Set.tpl index 01d4391232..dc327c1c95 100644 --- a/templates/CRM/Price/Form/Set.tpl +++ b/templates/CRM/Price/Form/Set.tpl @@ -52,7 +52,7 @@ {/if} - + {$form.financial_type_id.label} {$form.financial_type_id.html}   diff --git a/tests/phpunit/WebTest/Contribute/AddPricesetTest.php b/tests/phpunit/WebTest/Contribute/AddPricesetTest.php index 6c6eead48c..109b0362d5 100644 --- a/tests/phpunit/WebTest/Contribute/AddPricesetTest.php +++ b/tests/phpunit/WebTest/Contribute/AddPricesetTest.php @@ -86,7 +86,7 @@ class WebTest_Contribute_AddPricesetTest extends CiviSeleniumTestCase { } if ($financialType) { - $this->select("css=select.form-select", "label={$financialType}"); + $this->select("financial_type_id", "label={$financialType}"); } $this->type('help_pre', $setHelp); @@ -385,7 +385,7 @@ class WebTest_Contribute_AddPricesetTest extends CiviSeleniumTestCase { //add financial type of account type expense $financialType = $this->_testAddFinancialType(); - + $setTitle = 'Conference Fees - ' . substr(sha1(rand()), 0, 7); $usedFor = 'Contribution'; $setHelp = 'Select your conference options.'; @@ -516,7 +516,7 @@ class WebTest_Contribute_AddPricesetTest extends CiviSeleniumTestCase { 8 => 'Completed', ); foreach($expected as $label => $value) { - $this->verifyText("xpath=//form[@id='ContributionView']/div[2]/table/tbody/tr[$label]/td[2]", preg_quote($value)); + $this->verifyText("xpath=//form[@id='ContributionView']/div[2]/table/tbody/tr[$label]/td[2]", preg_quote($value), "On line __LINE__"); } } -- 2.25.1