? PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
18 Jan 2023

Summary of Changes

Introduces an Ldap factory in the authentication plugin for better testing capability. The existing test is moved to the integration test suite as it is not a unit test. A new unit test class is added as well and some smaller code cleanup like camel case variables.

This should only be considered after #39624 got merged.

Testing Instructions

Is covered by unit and integration test.

Actual result BEFORE applying this Pull Request

All works.

Expected result AFTER applying this Pull Request

All works.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

c6c61b4 18 Jan 2023 avatar laoneo cs
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jan 2023
Category Front End Plugins Unit Tests
avatar laoneo laoneo - open - 18 Jan 2023
avatar laoneo laoneo - change - 18 Jan 2023
Status New Pending
09bdfb9 18 Jan 2023 avatar laoneo cs
avatar laoneo laoneo - change - 18 Jan 2023
Labels Added: ? PR-4.3-dev
2274284 18 Jan 2023 avatar laoneo cs
e2a0cbd 20 Jan 2023 avatar laoneo typed
avatar tatankat
tatankat - comment - 21 Jan 2023

@laoneo Could you include the configuration and documentation changes in #38775 ? The ldap tests are also moved to Integration there.

avatar laoneo
laoneo - comment - 23 Jan 2023

Was not aware of #38775. This one should be merged first, and then I will adapt mine as well.

737e356 26 Jan 2023 avatar laoneo merge
fe310ca 26 Jan 2023 avatar laoneo move
2fc4bdd 26 Jan 2023 avatar laoneo year
avatar laoneo
laoneo - comment - 26 Jan 2023

@tatankat can you have a look here as I merged your changes from #38775.

avatar tatankat
tatankat - comment - 26 Jan 2023

The changes already handle some of my TODOs after my PRs are accepted, so thanks for that :)

But when I try a login, I get:
Joomla\Plugin\Authentication\Ldap\Extension\Ldap::__construct(): Argument #1 ($factory) must be of type Joomla\Plugin\Authentication\Ldap\Factory\LdapFactoryInterface, Joomla\Event\Dispatcher given, called in /var/www/html/timo/joomla-cms-composed/plugins/authentication/ldap/services/provider.php on line 42
The tests succeed however. Can the register function of the provider be tested?

avatar laoneo
laoneo - comment - 27 Jan 2023

Somehow the changes got reverted in the provider file. Fixed that.

avatar tatankat
tatankat - comment - 27 Jan 2023

It's working now

avatar obuisard obuisard - close - 28 Jan 2023
avatar obuisard obuisard - merge - 28 Jan 2023
avatar obuisard obuisard - change - 28 Jan 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-01-28 01:44:29
Closed_By obuisard
avatar obuisard
obuisard - comment - 28 Jan 2023

Thank you Allon @laoneo!

Add a Comment

Login with GitHub to post a comment