diff --git a/eZ/Publish/API/Repository/Tests/RoleServiceTest.php b/eZ/Publish/API/Repository/Tests/RoleServiceTest.php
index <HASH>..<HASH> 100644
--- a/eZ/Publish/API/Repository/Tests/RoleServiceTest.php
+++ b/eZ/Publish/API/Repository/Tests/RoleServiceTest.php
@@ -1328,9 +1328,9 @@ class RoleServiceTest extends BaseTest
                 array( 1, 'user', 'login' ),
                 array( 1, 'user', 'login' ),
                 array( 1, 'user', 'login' ),
-                array( 6, 'notification', 'use' ),
-                array( 6, 'user', 'password' ),
-                array( 6, 'user', 'selfedit' ),
+                array( $role->id, 'notification', 'use' ),
+                array( $role->id, 'user', 'password' ),
+                array( $role->id, 'user', 'selfedit' ),
             ),
             $policies
         );
Fixed: Do not rely on hardcoded role IDs in role service tests