We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c268bf4 commit da74bedCopy full SHA for da74bed
src/Codeception/Module/Symfony.php
@@ -1155,6 +1155,23 @@ public function dontSeeRememberedAuthentication(): void
1155
);
1156
}
1157
1158
+ /**
1159
+ * Verifies that the current user has multiple roles
1160
+ *
1161
+ * ``` php
1162
+ * <?php
1163
+ * $I->seeUserHasRoles(['ROLE_USER', 'ROLE_ADMIN']);
1164
+ * ```
1165
1166
+ * @param string[] $roles
1167
+ */
1168
+ public function seeUserHasRoles(array $roles): void
1169
+ {
1170
+ foreach ($roles as $role) {
1171
+ $this->seeUserHasRole($role);
1172
+ }
1173
1174
+
1175
/**
1176
* Check that the current user has a role
1177
*
0 commit comments