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
update database test work without section set #18151
Conversation
update database test
update tests
add matomo_tests to exception
test env on travis
test database change on travis
update tests
update test
update test database host
update tests
@sgiehl Sorry for the confusion. The purpose of this change is to run Matomo PHP tests locally without setup matomo/tests/PHPUnit/bootstrap.php Lines 72 to 75 in 852c3bd
I think those three lines init an empty test environment, the matomo/tests/PHPUnit/Framework/Fixture.php Line 265 in 852c3bd
Remove this line. Because after the test runs locally, the code alters the [database] section. A forceSave() has been called.
Add this host = "127.0.0.1" , purpose to pass Plugins\CoreAdminHome\tests\Integration\Commands\ConfigGetTest tests/PHPUnit/proxy/index.phpassert database access deny. Because I empty the [database_tests]localhost in global.ini.phpto auto pass from [database]`.
|
@peterhashair The problem with not using the matomo/tests/PHPUnit/System/MultipleSitesArchivingTest.php Lines 47 to 48 in 6d744db
|
update bootstrap to recreate empty test
@sgiehl that actually make sense, update it a little bit. so init again after the config database_tests is set. |
@sgiehl that one good to go? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked that again and it seems to work as expected now.
Description:
Fixes: #17856
update database test work without section set. use
getenv('TEST_SUITE')
to diff the travis and local.Review