Browse Source

fix unit tests

Olivier Massot 1 year ago
parent
commit
c5937baa02
1 changed files with 2 additions and 2 deletions
  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);
     }