diff --git a/src/Codeception/Module/Symfony.php b/src/Codeception/Module/Symfony.php index b04fd121..3566affe 100644 --- a/src/Codeception/Module/Symfony.php +++ b/src/Codeception/Module/Symfony.php @@ -1155,6 +1155,23 @@ public function dontSeeRememberedAuthentication(): void ); } + /** + * Verifies that the current user has multiple roles + * + * ``` php + * seeUserHasRoles(['ROLE_USER', 'ROLE_ADMIN']); + * ``` + * + * @param string[] $roles + */ + public function seeUserHasRoles(array $roles): void + { + foreach ($roles as $role) { + $this->seeUserHasRole($role); + } + } + /** * Check that the current user has a role *