Ver código fonte

fix unit tests

Olivier Massot 1 ano atrás
pai
commit
87021a206a

+ 2 - 2
tests/Unit/Service/Dolibarr/DolibarrSyncServiceTest.php

@@ -752,8 +752,8 @@ class DolibarrSyncServiceTest extends TestCase
         $index = $dolibarrSyncService->getActiveMembersIndex();
 
         $this->assertEqualsCanonicalizing([
-            1 => [1 => [FunctionEnum::PRESIDENT], 2 => [FunctionEnum::STUDENT]],
-            2 => [3 => [FunctionEnum::PRESIDENT, FunctionEnum::TEACHER]]
+            1 => [1 => [FunctionEnum::PRESIDENT->value], 2 => [FunctionEnum::STUDENT->value]],
+            2 => [3 => [FunctionEnum::PRESIDENT->value, FunctionEnum::TEACHER->value]]
         ], $index);
     }