group = 'Protected node'; // User with all needed permissions. $this->adminUser = $this->drupalCreateUser(array( 'access protected node password form', 'edit any protected node password', 'edit protected content', 'administer site configuration', 'administer nodes', 'bypass node access', 'administer content types', 'administer paragraphs bundles', )); // User with access protected node permission. $this->normalAccessAllowedUser = $this->drupalCreateUser(array('access protected node password form')); // User with access protected node permission. $this->bypassViewAccessAllowedUser = $this->drupalCreateUser(array( 'access protected node password form', 'view protected content', )); // User with view published content permission. $this->normalNonAccessAllowedUser = $this->drupalCreateUser(array('access content')); } }