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

Problems with PHPUnit migration #18707

Open
5 of 11 tasks
trasher opened this issue Jan 10, 2025 · 0 comments
Open
5 of 11 tasks

Problems with PHPUnit migration #18707

trasher opened this issue Jan 10, 2025 · 0 comments

Comments

@trasher
Copy link
Contributor

trasher commented Jan 10, 2025

Several existing tests classes (in tests/functionnal) cannot be migrated:

(this list is potentially incomplete for now)

  • Session
  • Migration
  • Plugin
  • Update
  • Glpi/System/Status/StatusChecker.php (because of static properties in GlpiStatusChecker class).
  • Glpi/System/Requirement/MysqliMysqlnd.php (need to mock native PHP functions)
  • Glpi/System/Requirement/SessionsConfiguration.php (need to mock native PHP functions)
  • Glpi/System/Requirement/PhpSupportedVersion.php (need to mock native PHP functions)
  • Glpi/System/Requirement/SeLinux.php (need to mock native PHP functions)
  • Glpi/System/Requirement/SessionsSecurityConfiguration.php (need to mock native PHP functions)
  • Glpi/System/Diagnostic/DatabaseSchemaIntegrityChecker.php issues when trying to redifned already mocked methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant