Merge pull request #5157 from devansh-webkul/test-check

Minor check added on the second method also
This commit is contained in:
Glenn Hermans 2021-09-16 17:09:29 +02:00 committed by GitHub
commit 55df44dd80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -127,6 +127,12 @@ class TaxCest
[$this->scenario['cart'], false]
);
$difference = abs($this->scenario['expectedTaxTotal'] - $result);
if ($difference <= 0.01 && $difference >= 0.0001) {
return;
}
$I->assertEquals($this->scenario['expectedTaxTotal'], $result);
}
}