<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
}
function testEditMembershipActivityTypes() {
- $this->open($this->sboxPath);
// Log in using webtestLogin() method
$this->webtestLogin();
// create contact
$this->click('is_override');
$this->waitForElementPresent('status_id');
$this->select('status_id', 'label=Current');
- $this->select('membership_type_id[0]', 'label=Default Organization');
- $this->select('membership_type_id[1]', 'label=General');
+ $this->select('membership_type_id[0]', 'value=1');
+ $this->select('membership_type_id[1]', 'value=1');
$this->click('_qf_Membership_upload-bottom');
$this->waitForElementPresent("access");
$this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-search-results']/table/tbody/tr[3]/td[3][text()='Type changed from {$membershipTypes['membership_type']} to General']"));
$this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-search-results']/table/tbody/tr[3]/td[5]/a[text()='{$contactName}']"));
}
-}
\ No newline at end of file
+}