Example #1
0
 /**
  * Test setting Wordpress roles and should return Symfony roles
  */
 public function testWordpressRoles()
 {
     $wordpressRoles = array('author');
     $user = new User();
     $user->setWordpressRoles($wordpressRoles);
     $this->assertEquals(array('ROLE_WP_AUTHOR'), $user->getRoles());
 }
 /**
  * Test setting Wordpress roles and should return Symfony roles.
  */
 public function testWordpressRoles()
 {
     $wordpressRoles = ['author'];
     $user = new User();
     $user->setWordpressRoles($wordpressRoles);
     $this->assertEquals(['ROLE_WP_AUTHOR'], $user->getRoles());
 }