<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- function testRelationshipTypeAdd() {
+ public function testRelationshipTypeAdd() {
$this->webtestLogin();
$this->waitForPageToLoad($this->getTimeoutMsec());
'Contact Type B' => 'Individual',
);
foreach ($data as $param => $val) {
- $this->assertElementContainsText('option11', $val, "Could not able to save $param");
+ $this->assertElementContainsText("xpath=//table[@class='display dataTable no-footer']", $val, "Could not able to save $param");
}
}
- function testRelationshipTypeAddValidateFormRules() {
+ public function testRelationshipTypeAddValidateFormRules() {
$this->webtestLogin();
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', 'Label already exists in Database.');
}
-}
+}