Skip to content
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 XML configuration in phpunit.xml #79

Open
gitressa opened this issue Dec 16, 2022 · 0 comments
Open

Update XML configuration in phpunit.xml #79

gitressa opened this issue Dec 16, 2022 · 0 comments

Comments

@gitressa
Copy link
Contributor

gitressa commented Dec 16, 2022

Problem

When you run a PHPUnit test, you get this warning:

$ lando phpunit web/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php 
PHPUnit 9.5.26 by Sebastian Bergmann and contributors.

Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

Testing Drupal\Tests\Core\Password\PasswordHashingTest
.........                                                           9 / 9 (100%)

Time: 00:00.027, Memory: 10.00 MB

OK (9 tests, 19 assertions)

Solution

Update the phpunit.xml file:

$ lando phpunit --migrate-configuration
PHPUnit 9.5.26 by Sebastian Bergmann and contributors.

Created backup:         /app/phpunit.xml.bak
Migrated configuration: /app/phpunit.xml

With updated XML configuration

The warning is gone, and the test completes:

$ lando phpunit web/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php
PHPUnit 9.5.26 by Sebastian Bergmann and contributors.

Testing Drupal\Tests\Core\Password\PasswordHashingTest
.........                                                           9 / 9 (100%)

Time: 00:00.022, Memory: 10.00 MB

OK (9 tests, 19 assertions)

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

1 participant