Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
CIWEMB-56: Prevent Company tests from affecting other form tests
Browse files Browse the repository at this point in the history
  • Loading branch information
omarabuhussein committed Dec 9, 2022
1 parent 7ba28d5 commit 2c81346
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function testUpdatingCompanySuccessfully() {
$params['invoice_prefix'] = 'XYZ';
$params['next_invoice_number'] = '000025';
$this->submitForm($params);
unset($_REQUEST['id']);

$company = new CRM_Multicompanyaccounting_DAO_Company();
$company->contact_id = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function testCompanyDeletion() {

$_REQUEST['id'] = $company->id;
$this->submitForm([]);
unset($_REQUEST['id']);

$company = new CRM_Multicompanyaccounting_DAO_Company();
$company->contact_id = 1;
Expand Down

0 comments on commit 2c81346

Please sign in to comment.