<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
}
public function testInheritedMembership() {
- $this->markTestSkipped('Skipping for now as it works fine locally.');
+ //$this->markTestSkipped('Skipping for now as it works fine locally.');
// Log in using webtestLogin() method
$this->webtestLogin();
$joinDate = date('Y-m-d');
$startDate = date('Y-m-d');
$endDate = date('Y-m-d', mktime(0, 0, 0, date('m'), date('d') - 1, date('Y') + 1));
- $configVars = new CRM_Core_Config_Variables();
foreach (array(
'joinDate',
'startDate',
'endDate',
) as $date) {
- $$date = CRM_Utils_Date::customFormat($$date, $configVars->dateformatFull);
+ $$date = CRM_Utils_Date::customFormat($$date, $this->webtestGetSetting('dateformatFull'));
}
$this->webtestVerifyTabularData(
$this->select('period_type', 'value=rolling');
$this->select2('relationship_type_id', 'Employer of', TRUE);
+
$this->type('max_related', '5');
$this->click('_qf_MembershipType_upload-bottom');
// click through to the activity view screen
$this->click('css=li#tab_activity a');
- $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td[8]/span/a");
// check number of activity for contact
$this->assertEquals(1, $this->getText("xpath=//li[@id='tab_activity']/a/em"));
- $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']@href"));
+ $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td[8]/span/a@href"));
$expectedMembershipActivityId = $url['queryString']['id'];
// verify membership id with membership activity id
// click through to the activity view screen after edit
$this->click('css=li#tab_activity a');
- $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td[8]/span/a");
$this->assertEquals(1, $this->getText("xpath=//li[@id='tab_activity']/a/em"));
- $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']@href"));
+ $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td[8]/span/a@href"));
$actualMembershipActivityId1 = $url['queryString']['id'];
// verify membership id and membership activity id with previous one
// click through to the activity view screen
$this->click('css=li#tab_activity a');
- $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']");
$this->assertEquals(1, $this->getText("xpath=//li[@id='tab_activity']/a/em"));
- $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']@href"));
+ $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']@href"));
$actualMembershipActivityId2 = $url['queryString']['id'];
// verify membership id and membership activity id with previous one
// click through to the activity view screen
$this->click('css=li#tab_activity a');
- $this->waitForText("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody/tr/td", "No matches found.");
+ $this->waitForText("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td", "None found.");
$this->assertEquals(0, $this->getText("xpath=//li[@id='tab_activity']/a/em"));
// click through to the relationship view screen