File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
tests/integration/src/Repositories Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,15 @@ class AccessTokenRepositoryTest extends TestCase
7070
7171 public static function setUpBeforeClass (): void
7272 {
73+
7374 self ::$ containerAddress = getenv ('HOSTADDRESS ' ) ?: null ;
7475 self ::$ mysqlPort = getenv ('HOSTPORT_MY ' ) ?: null ;
7576 self ::$ postgresPort = getenv ('HOSTPORT_PG ' ) ?: null ;
7677 // Mac docker seems to require connecting to localhost and mapped port to access containers
77- if (PHP_OS_FAMILY === 'Darwin ' && getenv ('HOSTADDRESS ' ) === false ) {
78+ if (
79+ in_array (PHP_OS_FAMILY , ['Darwin ' , 'Linux ' ]) &&
80+ getenv ('HOSTADDRESS ' ) === false
81+ ) {
7882 //phpcs:ignore Generic.Files.LineLength.TooLong
7983 echo "Defaulting docker host address to 127.0.0.1. Disable this behavior by setting HOSTADDRESS to a blank. \n\tHOSTADDRESS= ./vendor/bin/phpunit " ;
8084 self ::$ containerAddress = "127.0.0.1 " ;
You can’t perform that action at this time.
0 commit comments