Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(ldap): Fix user_ldap attribute casing to fix tests
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc authored and max-nextcloud committed Mar 5, 2025
commit a36bcd0d0b64b6f3d6c6de83386c48ab16aaa08a
3 changes: 2 additions & 1 deletion apps/user_ldap/tests/AccessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,8 @@ public function testFetchListOfUsers() {

$this->prepareMocksForSearchTests($base, $fakeConnection, $fakeSearchResultResource, $fakeLdapEntries);

$this->connection->expects($this->exactly($fakeLdapEntries['count']))
// Called twice per user, for userExists and userExistsOnLdap
$this->connection->expects($this->exactly(2 * $fakeLdapEntries['count']))
->method('writeToCache')
->with($this->stringStartsWith('userExists'), true);

Expand Down