+
+ /**
+ * @param string $firstName
+ * @param string $lastName
+ * @param $caseTypeLabel
+ *
+ * test for assign case to another client
+ */
+ function _testAssignToClient($firstName, $lastName, $caseTypeLabel) {
+ $this->openCiviPage('case/search', 'reset=1', '_qf_Search_refresh-bottom');
+ $this->type('sort_name', $firstName);
+ $this->clickLink('_qf_Search_refresh-bottom');
+ $this->waitForElementPresent("xpath=//table[@class='caseSelector']/tbody//tr/td[3]/a[text()='{$lastName}, {$firstName}']");
+
+ $this->clickPopupLink("xpath=//table[@class='caseSelector']/tbody//tr/td[3]/a[text()='{$lastName}, {$firstName}']/../../td[11]/span[2]/ul/li/a[contains(text(),'Assign to Another Client')]");
+ $client = $this->createDialogContact("reassign_contact_id");
+ $this->clickLink('_qf_EditClient_done-bottom');
+ $this->assertElementContainsText('page-title', "{$client['display_name']} - $caseTypeLabel");
+ }