Skip to content

Username for tests can't defined in .env file on windows #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rakoitde opened this issue Aug 14, 2023 · 1 comment
Open

Username for tests can't defined in .env file on windows #31

rakoitde opened this issue Aug 14, 2023 · 1 comment

Comments

@rakoitde
Copy link
Contributor

The environment variable username in windows environments can't be changed with .env file

Expected behavior

Connect successfully with username (=admin) defined in .env-File

Actual behavior

Connection fails, because of wrong username.
The username is set to the username with the user logged into windows.
However, this username can differ from the username defined in the .env file

Steps to reproduce the behavior

Changing the environment variable to IDOIT_USERNAME works:

File: .env
IDOIT_USERNAME=admin

File: BaseTest.php
Method: setUp()
Line: 143
if (getenv('IDOIT_USERNAME') !== false && getenv('PASSWORD') !== false) {
$config[API::USERNAME] = getenv('IDOIT_USERNAME');
$config[API::PASSWORD] = getenv('PASSWORD');
}

Environment

Windows

@bheisig
Copy link
Member

bheisig commented Aug 18, 2023

Issue got fixed in recent PR. Please have a try 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants