Parcourir la source

fix unit tests

Olivier Massot il y a 1 an
Parent
commit
c5937baa02
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      tests/Unit/Service/Security/ModuleTest.php

+ 2 - 2
tests/Unit/Service/Security/ModuleTest.php

@@ -160,7 +160,7 @@ class ModuleTest extends TestCase
         $this->parameterBag->method('get')->with('opentalent.products')->willReturn(
             [
                 'artist' => ['modules' => ['foo']],
-                'artist_premium' => ['extend' => 'artist', 'modules' => ['bar']],
+                'artist-premium' => ['extend' => 'artist', 'modules' => ['bar']],
             ]
         );
 
@@ -184,7 +184,7 @@ class ModuleTest extends TestCase
         );
 
         $this->expectException(AccessDeniedHttpException::class);
-        $this->expectExceptionMessage('The product artist_premium does not exist !');
+        $this->expectExceptionMessage('The product artist-premium does not exist !');
 
         $module->getModulesByProductConfiguration(SettingsProductEnum::ARTIST_PREMIUM);
     }