require_once 'CiviTest/CiviSeleniumTestCase.php';
/**
- * Class WebTest_Mailing_ValidateBodyMailingComponentTest
+ * Class WebTest_Mailing_ValidateBodyMailingComponentTest
*/
-
class WebTest_Mailing_ValidateBodyMailingComponentTest extends CiviSeleniumTestCase {
protected function setUp() {
$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
// 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
+
+}