Skip to content

Commit

Permalink
Merge pull request #38 from davist11/patch-1
Browse files Browse the repository at this point in the history
Don't run afterInstall in test env
  • Loading branch information
imagehat authored Jul 15, 2021
2 parents 67c93a8 + 9fbb578 commit d5d33a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Avatax.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ public function onRefundTransaction(RefundTransactionEvent $event)
*/
public function onAfterInstall()
{
if (Craft::$app->config->env === 'test') {
return;
}

$commerce = CommercePlugin::getInstance();

// Create an "avatax" tax category
Expand Down

0 comments on commit d5d33a8

Please sign in to comment.