Olivier Massot преди 7 месеца
родител
ревизия
14114a9b04
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tests/Unit/Service/Organization/OrganizationFactoryTest.php

+ 1 - 1
tests/Unit/Service/Organization/OrganizationFactoryTest.php

@@ -2214,7 +2214,7 @@ class OrganizationFactoryTest extends TestCase
         $this->accessRepository->method('findAdminAccess')->with($organization)->willReturn($access);
         $this->accessRepository->method('findAdminAccess')->with($organization)->willReturn($access);
 
 
         // Expect the person's setPassword method to be called with a hashed password (not the plain password)
         // Expect the person's setPassword method to be called with a hashed password (not the plain password)
-        $person->expects(self::once())->method('setPassword')->with(self::callback(function($hashedPassword) {
+        $person->expects(self::once())->method('setPassword')->with(self::callback(function ($hashedPassword) {
             // Verify that the password is not the plain text password
             // Verify that the password is not the plain text password
             return is_string($hashedPassword) && $hashedPassword !== 'Password123!';
             return is_string($hashedPassword) && $hashedPassword !== 'Password123!';
         }));
         }));