Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Oct 14, 2020
1 parent 7413e41 commit e36e903
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Integration/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ final protected function getShopId(): int

private static function getEnvOrSkipTest(string $varname): string
{
if (false === \getenv($varname)) {
$var = \getenv($varname);

if (false === $var || '' === $var) {
self::markTestSkipped(\sprintf('Integration testing disabled (%s missing).', $varname));
}

return (string) \getenv($varname);
return $var;
}
}

0 comments on commit e36e903

Please sign in to comment.