From 7b020771b8c5984f7f4d3ac41fe9da34b7bff531 Mon Sep 17 00:00:00 2001 From: Anjali Ujjainia Date: Mon, 30 May 2016 13:33:07 +0530 Subject: [PATCH] Test formatting and changed to base_convert --- .../WebTest/Mailing/ValidateBodyMailingComponentTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/WebTest/Mailing/ValidateBodyMailingComponentTest.php b/tests/phpunit/WebTest/Mailing/ValidateBodyMailingComponentTest.php index 32d3592ab0..4936219a3a 100644 --- a/tests/phpunit/WebTest/Mailing/ValidateBodyMailingComponentTest.php +++ b/tests/phpunit/WebTest/Mailing/ValidateBodyMailingComponentTest.php @@ -26,9 +26,8 @@ require_once 'CiviTest/CiviSeleniumTestCase.php'; /** - * Class WebTest_Mailing_ValidateBodyMailingComponentTest + * Class WebTest_Mailing_ValidateBodyMailingComponentTest */ - class WebTest_Mailing_ValidateBodyMailingComponentTest extends CiviSeleniumTestCase { protected function setUp() { @@ -41,7 +40,7 @@ class WebTest_Mailing_ValidateBodyMailingComponentTest extends CiviSeleniumTestC $this->openCiviPage("admin/component", "action=add&reset=1"); // fill component name. - $componentName = 'ComponentName_' . substr(sha1(rand()), 0, 7); + $componentName = 'ComponentName_' . substr(base_convert(rand(), 10, 36), 0, 7); $this->type("name", $componentName); // fill component type @@ -68,4 +67,5 @@ class WebTest_Mailing_ValidateBodyMailingComponentTest extends CiviSeleniumTestC // Verify the error text. $this->assertTrue($this->isElementPresent("xpath=//table/tbody//tr/td[2]/span[text()='{$status}']"), "The row doesn't consists of proper component details"); } -} \ No newline at end of file + +} -- 2.25.1