INFRA-132 - Drupal.Classes.ClassDeclaration
[civicrm-core.git] / tests / phpunit / WebTest / Admin / RelationshipTypeAddTest.php
index 055ebcb769f56419e851e4b782eda00850329694..39a9845bb8d00c21a32c0ae9da4e61e4f930d78a 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -35,7 +35,7 @@ class WebTest_Admin_RelationshipTypeAddTest extends CiviSeleniumTestCase {
     parent::setUp();
   }
 
-  function testRelationshipTypeAdd() {
+  public function testRelationshipTypeAdd() {
 
     $this->webtestLogin();
     $this->waitForPageToLoad($this->getTimeoutMsec());
@@ -74,11 +74,11 @@ class WebTest_Admin_RelationshipTypeAddTest extends CiviSeleniumTestCase {
       '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());
@@ -122,5 +122,5 @@ class WebTest_Admin_RelationshipTypeAddTest extends CiviSeleniumTestCase {
 
     $this->waitForText('crm-notification-container', 'Label already exists in Database.');
   }
-}
 
+}