-1

I tried to have the server address injected to the test with environment variable ABSOLUTE_URL so PhpBrowser would test against it. The config I wanted to do is something like this:

class_name: AcceptanceTester
modules:
    enabled:
        - PhpBrowser:
            url: "%ABSOLUTE_URL%"

But I simply could not get it to work. Is there anyway I can do it?

Koala Yeung
  • 7,475
  • 3
  • 30
  • 50

1 Answers1

1

Add params section to codeception.yaml file:

params:
    - env

Documented at https://codeception.com/docs/06-ModulesAndHelpers#Dynamic-Configuration-With-Parameters

Naktibalda
  • 13,705
  • 5
  • 35
  • 51