Problem/Motivation
We have 14 errors on test cases for multiple modules, besides some code standard issues, we need to fix this before going for a new stable release on Drupal 10
PHP Fatal error: Declaration of Drupal\ldap_servers_dummy\FakeQuery::execute() must be compatible with Symfony\Component\Ldap\Adapter\QueryInterface::execute(): Symfony\Component\Ldap\Adapter\CollectionInterface in /var/www/html/modules/contrib/ldap/ldap_servers/tests/modules/ldap_servers_dummy/src/FakeQuery.php on line 31
Tests: 45, Assertions: 174, Errors: 14.
Steps to reproduce
Install the module on dev branch
Run the PHPUnit for the LDAP module
Proposed resolution
Update compatible methods on interfaces using symfony/ldap 6.x
Issue fork ldap-3358276
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 8.x-4.x
changes, plain diff MR !34
- 3358276-automated-testing-symfonyldap
changes, plain diff MR !35
Comments
Comment #3
sergiogsanchez commentedMR Added
Comment #6
sergiogsanchez commentedCleaning MRs
Comment #8
jidrone commentedI passes the test and code looks good.
Comment #10
sergiogsanchez commentedComment #11
sergiogsanchez commentedComment #12
bluegeek9 commented